aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2007-01-16-CrashOnBadCast2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2007-01-16-CrashOnBadCast2.ll')
-rw-r--r--test/Assembler/2007-01-16-CrashOnBadCast2.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Assembler/2007-01-16-CrashOnBadCast2.ll b/test/Assembler/2007-01-16-CrashOnBadCast2.ll
new file mode 100644
index 0000000..41b1708
--- /dev/null
+++ b/test/Assembler/2007-01-16-CrashOnBadCast2.ll
@@ -0,0 +1,4 @@
+; PR1117
+; RUN: llvm-as < %s -o /dev/null -f |& grep {invalid cast opcode for cast from}
+
+@X = constant i8* trunc (i64 0 to i8*)