blob: 33666b8cb2ce5ad9d26720ccfbcdd0b058e778d2 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; PR1117
Gabor Greifafb4e8c2008-05-20 22:07:21 +00002; RUN: not llvm-as %s -o /dev/null -f |& grep {invalid cast opcode for cast from}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
4define i8* @nada(i64 %X) {
5 %result = trunc i64 %X to i8*
6 ret i8* %result
7}