mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 19:20:28 +00:00
Test cases for PR1117.
llvm-svn: 33281
This commit is contained in:
parent
9423a82dc3
commit
4d13f6a1b6
8
test/Regression/Assembler/2007-01-16-CrashOnBadCast.ll
Normal file
8
test/Regression/Assembler/2007-01-16-CrashOnBadCast.ll
Normal file
@ -0,0 +1,8 @@
|
||||
; PR1117
|
||||
; RUN: llvm-as < %s 2>&1 > /dev/null | \
|
||||
; RUN: grep "invalid cast opcode for cast from"
|
||||
|
||||
define i8* %nada(i64 %X) {
|
||||
%result = trunc i64 %X to i8*
|
||||
ret i8* %result
|
||||
}
|
5
test/Regression/Assembler/2007-01-16-CrashOnBadCast2.ll
Normal file
5
test/Regression/Assembler/2007-01-16-CrashOnBadCast2.ll
Normal file
@ -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*)
|
Loading…
Reference in New Issue
Block a user