aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-02 20:47:51 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-02 20:47:51 +0000
commit42525a3c5bd6812dbe0938994b3ee98f5fc6136b (patch)
tree430ce05d65fb51d00d0f813fe5d64347232d6840 /test/Assembler/2007-01-02-Undefined-Arg-Type.ll
parentcb69b2f0dc68a20703bc9a6f0ece28ca8188b9aa (diff)
Add a test case for abstract parameter and result types in function
definitions. The assembler should produce an error on this input. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2007-01-02-Undefined-Arg-Type.ll')
-rw-r--r--test/Assembler/2007-01-02-Undefined-Arg-Type.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Assembler/2007-01-02-Undefined-Arg-Type.ll b/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
new file mode 100644
index 0000000000..b12a897e7a
--- /dev/null
+++ b/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
@@ -0,0 +1,10 @@
+; The assembler should catch an undefined argument type .
+; RUN: llvm-as < %s -o /dev/null -f 2>&1 | grep "Reference to abstract argument"
+
+; %typedef.bc_struct = type opaque
+
+implementation ; Functions:
+
+define bool %someFunc(i32* %tmp.71.reload, %typedef.bc_struct* %n1) {
+ ret bool true
+}