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

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