1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/Assembler/2002-07-25-ReturnPtrFunction.ll

14 lines
282 B
LLVM
Raw Normal View History

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