llvm-project/llvm/test/Assembler/2002-07-25-ParserAssertionF...

14 lines
297 B
LLVM
Raw Normal View History

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