forked from OSchip/llvm-project
14 lines
250 B
Plaintext
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
|
||
|
}
|