2007-01-17 02:45:19 +00:00
|
|
|
; PR1117
|
|
|
|
; RUN: llvm-as < %s 2>&1 > /dev/null | \
|
|
|
|
; RUN: grep "invalid cast opcode for cast from"
|
|
|
|
|
2007-01-26 08:25:06 +00:00
|
|
|
define i8* @nada(i64 %X) {
|
2007-01-17 02:45:19 +00:00
|
|
|
%result = trunc i64 %X to i8*
|
|
|
|
ret i8* %result
|
|
|
|
}
|