forked from OSchip/llvm-project
10 lines
156 B
LLVM
10 lines
156 B
LLVM
|
; RUN: llvm-upgrade < %s | llvm-as | opt -raise
|
||
|
|
||
|
declare void %foo()
|
||
|
|
||
|
void %test() {
|
||
|
%X = cast void()* %foo to int()*
|
||
|
%retval = call int %X()
|
||
|
ret void
|
||
|
}
|