diff --git a/llvm/test/Assembler/2007-04-15-BadIntrinsic.ll b/llvm/test/Assembler/2007-04-15-BadIntrinsic.ll new file mode 100644 index 000000000000..b21bd667c498 --- /dev/null +++ b/llvm/test/Assembler/2007-04-15-BadIntrinsic.ll @@ -0,0 +1,9 @@ +; 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 +} +