Test cases for PR1117.

llvm-svn: 33281
This commit is contained in:
Reid Spencer 2007-01-17 02:45:19 +00:00
parent 9423a82dc3
commit 4d13f6a1b6
2 changed files with 13 additions and 0 deletions

View 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
}

View 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*)