1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/Assembler/2002-07-25-ReturnPtrFunction.ll
Duncan P. N. Exon Smith 986b92fd8e verify-uselistorder: Force -preserve-bc-use-list-order
llvm-svn: 216022
2014-08-19 21:08:27 +00:00

15 lines
312 B
LLVM

; Test that returning a pointer to a function causes the disassembler to print
; the right thing.
;
; RUN: llvm-as < %s | llvm-dis | llvm-as
; RUN: verify-uselistorder %s
declare void (i32)* @foo()
define void @test() {
call void (i32)* ()* @foo( ) ; <%ty*>:1 [#uses=0]
ret void
}