blob: 57ca2ffeb5f33b2429819f83adbc3a62ab0a40f5 [file] [log] [blame]
Chris Lattner65923ef2002-07-25 20:52:34 +00001; Make sure we don't get an assertion failure, even though this is a parse
2; error
Tanya Lattner8f342f82007-11-28 04:57:00 +00003; RUN: not llvm-as < %s -o /dev/null -f |& grep {No arguments}
Chris Lattner65923ef2002-07-25 20:52:34 +00004
Reid Spencerce380562007-01-26 08:25:06 +00005%ty = type void (i32)
Chris Lattner65923ef2002-07-25 20:52:34 +00006
Reid Spencerce380562007-01-26 08:25:06 +00007declare %ty* @foo()
Chris Lattner65923ef2002-07-25 20:52:34 +00008
Reid Spencerce380562007-01-26 08:25:06 +00009define void @test() {
10 call %ty* @foo( ) ; <%ty*>:0 [#uses=0]
Chris Lattner65923ef2002-07-25 20:52:34 +000011 ret void
12}
13