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