diff options
Diffstat (limited to 'llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll')
-rw-r--r-- | llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll b/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll new file mode 100644 index 00000000000..66b80de348b --- /dev/null +++ b/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s >/dev/null |& grep {Expected type 'i32' for element #0} +; Test the case of a misformed constant initializer +; This should cause an assembler error, not an assertion failure! +constant { i32 } { float 1.0 } |