aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2002-07-25-ParserAssertionFailure.llx
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2002-07-25-ParserAssertionFailure.llx')
-rw-r--r--test/Assembler/2002-07-25-ParserAssertionFailure.llx13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Assembler/2002-07-25-ParserAssertionFailure.llx b/test/Assembler/2002-07-25-ParserAssertionFailure.llx
new file mode 100644
index 0000000..ccfc380
--- /dev/null
+++ b/test/Assembler/2002-07-25-ParserAssertionFailure.llx
@@ -0,0 +1,13 @@
+; Make sure we don't get an assertion failure, even though this is a parse
+; error
+; RUN: llvm-as < %s -o /dev/null -f |& grep {No arguments}
+
+%ty = type void (i32)
+
+declare %ty* @foo()
+
+define void @test() {
+ call %ty* @foo( ) ; <%ty*>:0 [#uses=0]
+ ret void
+}
+