aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2003-04-15-ConstantInitAssertion.llx
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2003-04-15-ConstantInitAssertion.llx')
-rw-r--r--test/Assembler/2003-04-15-ConstantInitAssertion.llx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Assembler/2003-04-15-ConstantInitAssertion.llx b/test/Assembler/2003-04-15-ConstantInitAssertion.llx
new file mode 100644
index 0000000..58b8bca
--- /dev/null
+++ b/test/Assembler/2003-04-15-ConstantInitAssertion.llx
@@ -0,0 +1,4 @@
+; RUN: 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 }