diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Other/nonconst-static-ev.ll | 8 | ||||
-rw-r--r-- | test/Other/nonconst-static-iv.ll | 8 |
2 files changed, 16 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 + diff --git a/test/Other/nonconst-static-iv.ll b/test/Other/nonconst-static-iv.ll new file mode 100644 index 0000000000..14db94c9a8 --- /dev/null +++ b/test/Other/nonconst-static-iv.ll @@ -0,0 +1,8 @@ +; RUN: not llc < %s 2> %t +; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s + +@0 = global i8 insertvalue( { i8 } select (i1 ptrtoint (i32* @1 to i1), { i8 } { i8 1 }, { i8 } { i8 2 }), i8 0, 0) +@1 = external global i32 + +; CHECK-ERRORS: Unsupported expression in static initializer: insertvalue + |