Test case for PR1328.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 16 Apr 2007 06:52:21 +0000 (06:52 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 16 Apr 2007 06:52:21 +0000 (06:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36119 91177308-0d34-0410-b5e6-96231b3b80d8

test/Assembler/2007-04-15-BadIntrinsic.ll [new file with mode: 0644]

diff --git a/test/Assembler/2007-04-15-BadIntrinsic.ll b/test/Assembler/2007-04-15-BadIntrinsic.ll
new file mode 100644 (file)
index 0000000..b21bd66
--- /dev/null
@@ -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
+}
+