blob: 29c7c02ff8505d7bcd001dabae7d7b1ccd85eedf [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
Chris Lattnerdf986172009-01-02 07:01:27 +00003; RUN: not llvm-as %s -o /dev/null -f |& 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