llvm-6502/test/Assembler/2002-07-25-ReturnPtrFunction.llx
2006-12-02 04:23:10 +00:00

14 lines
250 B
Plaintext

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