hanchenye-llvm-project/llvm/test/Assembler/2002-07-25-ReturnPtrFunctio...

14 lines
250 B
Plaintext
Raw Normal View History

2002-07-26 04:57:21 +08:00
; 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
2002-07-26 04:57:21 +08:00
%ty = type void (int)
declare %ty* %foo()
void %test() {
call %ty*()* %foo()
ret void
}