llvm/test/Assembler/2002-07-25-ReturnPtrFunction.llx
2003-09-15 20:02:53 +00:00

14 lines
235 B
Plaintext

; Test that returning a pointer to a function causes the disassembler to print
; the right thing.
;
; RUN: llvm-as < %s | llvm-dis | llvm-as
%ty = type void (int)
declare %ty* %foo()
void %test() {
call %ty*()* %foo()
ret void
}