blob: 3c5c5546b4315a09c6fc7d586cbf563a2c3e4362 [file] [log] [blame]
Chris Lattner8890f7b2002-07-25 20:52:34 +00001; Make sure we don't get an assertion failure, even though this is a parse
2; error
Dan Gohmanfea1dd02009-08-25 15:38:29 +00003; RUN: not llvm-as %s -o /dev/null |& grep {'@foo' defined with}
Chris Lattner8890f7b2002-07-25 20:52:34 +00004
Reid Spencere3ff5ad2007-01-26 08:25:06 +00005%ty = type void (i32)
Chris Lattner8890f7b2002-07-25 20:52:34 +00006
Reid Spencere3ff5ad2007-01-26 08:25:06 +00007declare %ty* @foo()
Chris Lattner8890f7b2002-07-25 20:52:34 +00008
Reid Spencere3ff5ad2007-01-26 08:25:06 +00009define void @test() {
10 call %ty* @foo( ) ; <%ty*>:0 [#uses=0]
Chris Lattner8890f7b2002-07-25 20:52:34 +000011 ret void
12}
13