2002-07-26 04:52:34 +08:00
|
|
|
; Make sure we don't get an assertion failure, even though this is a parse
|
|
|
|
; error
|
2009-08-25 23:38:29 +08:00
|
|
|
; RUN: not llvm-as %s -o /dev/null |& grep {'@foo' defined with}
|
2002-07-26 04:52:34 +08:00
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
%ty = type void (i32)
|
2002-07-26 04:52:34 +08:00
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
declare %ty* @foo()
|
2002-07-26 04:52:34 +08:00
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
define void @test() {
|
|
|
|
call %ty* @foo( ) ; <%ty*>:0 [#uses=0]
|
2002-07-26 04:52:34 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|