diff options
Diffstat (limited to 'test/Other/nonconst-static-iv.ll')
-rw-r--r-- | test/Other/nonconst-static-iv.ll | 8 |
1 files changed, 8 insertions, 0 deletions
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 + |