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

14 lines
282 B
LLVM
Raw Normal View History

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
declare void (i32)* @foo()
2002-07-26 04:57:21 +08:00
2008-02-14 15:57:12 +08:00
define void @test() {
call void (i32)* ()* @foo( ) ; <%ty*>:1 [#uses=0]
2008-02-14 15:57:12 +08:00
ret void
2002-07-26 04:57:21 +08:00
}
2008-02-14 15:57:12 +08:00