summaryrefslogtreecommitdiffstats
path: root/test/Assembler
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
parentcb69b2f0dc68a20703bc9a6f0ece28ca8188b9aa (diff)
downloadexternal_llvm-42525a3c5bd6812dbe0938994b3ee98f5fc6136b.zip
external_llvm-42525a3c5bd6812dbe0938994b3ee98f5fc6136b.tar.gz
external_llvm-42525a3c5bd6812dbe0938994b3ee98f5fc6136b.tar.bz2
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')
-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 0000000..b12a897
--- /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
+}