diff options
Diffstat (limited to 'test/Other/nonconst-static-ev.ll')
-rw-r--r-- | test/Other/nonconst-static-ev.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Other/nonconst-static-ev.ll b/test/Other/nonconst-static-ev.ll new file mode 100644 index 0000000000..3e4b7bde5e --- /dev/null +++ b/test/Other/nonconst-static-ev.ll @@ -0,0 +1,8 @@ +; RUN: not llc < %s 2> %t +; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s + +@0 = global i8 extractvalue ([1 x i8] select (i1 ptrtoint (i32* @1 to i1), [1 x i8] [ i8 1 ], [1 x i8] [ i8 2 ]), 0) +@1 = external global i32 + +; CHECK-ERRORS: Unsupported expression in static initializer: extractvalue + |