Test cases for PR1117.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33281 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-01-17 02:45:19 +00:00
parent 7af9a13f3a
commit 889cf0ec51
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*)