1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/Assembler/2002-07-25-ReturnPtrFunction.llx

16 lines
291 B
Plaintext
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