llvm-mirror/test/Assembler/2007-04-15-BadIntrinsic.ll
2007-11-28 04:57:00 +00:00

10 lines
197 B
LLVM

; RUN: not llvm-as < %s -o /dev/null -f |& grep {Call to invalid LLVM intrinsic}
declare i32 @llvm.foobar(i32 %foo)
define i32 @test() {
%nada = call i32 @llvm.foobar(i32 0)
ret i32 %nada
}