2002-07-26 04:57:21 +08:00
|
|
|
; Test that returning a pointer to a function causes the disassembler to print
|
|
|
|
; the right thing.
|
|
|
|
;
|
2008-02-14 15:57:12 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | llvm-as
|
2002-07-26 04:57:21 +08:00
|
|
|
|
2008-02-14 15:57:12 +08:00
|
|
|
%ty = type void (i32)
|
2002-07-26 04:57:21 +08:00
|
|
|
|
2008-02-14 15:57:12 +08:00
|
|
|
declare %ty* @foo()
|
2002-07-26 04:57:21 +08:00
|
|
|
|
2008-02-14 15:57:12 +08:00
|
|
|
define void @test() {
|
|
|
|
call %ty* ()* @foo( ) ; <%ty*>:1 [#uses=0]
|
|
|
|
ret void
|
2002-07-26 04:57:21 +08:00
|
|
|
}
|
2008-02-14 15:57:12 +08:00
|
|
|
|
|
|
|
|