llvm-project/llvm/test/Assembler/2007-04-15-BadIntrinsic.ll

10 lines
193 B
LLVM
Raw Normal View History

2007-04-16 14:52:21 +08:00
; RUN: 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
}