aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2007-01-16-CrashOnBadCast2.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-17 02:45:19 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-17 02:45:19 +0000
commit889cf0ec51d8fa3d31bf14a1a4db019f79c2e277 (patch)
treeacad3d42921a2ae9ce1f512c1addf264a27ab7f4 /test/Assembler/2007-01-16-CrashOnBadCast2.ll
parent7af9a13f3a1d9f45c563c7184bb5abe51fdbaf00 (diff)
downloadexternal_llvm-889cf0ec51d8fa3d31bf14a1a4db019f79c2e277.zip
external_llvm-889cf0ec51d8fa3d31bf14a1a4db019f79c2e277.tar.gz
external_llvm-889cf0ec51d8fa3d31bf14a1a4db019f79c2e277.tar.bz2
Test cases for PR1117.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2007-01-16-CrashOnBadCast2.ll')
-rw-r--r--test/Assembler/2007-01-16-CrashOnBadCast2.ll5
1 files changed, 5 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..80cbeac
--- /dev/null
+++ b/test/Assembler/2007-01-16-CrashOnBadCast2.ll
@@ -0,0 +1,5 @@
+; PR1117
+; RUN: llvm-as < %s 2>&1 > /dev/null | \
+; RUN: grep "invalid cast opcode for cast from"
+
+%X = constant i8* trunc (i64 0 to i8*)