xref: /aosp_15_r20/external/llvm/test/Assembler/2007-01-16-CrashOnBadCast.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; PR1117
2; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "invalid cast opcode for cast from"
3
4define i8* @nada(i64 %X) {
5    %result = trunc i64 %X to i8*
6    ret i8* %result
7}
8