llvm-6502/test/ExecutionEngine/test-call.ll
Chris Lattner e4adeb47ff Test indirect call
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5025 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 14:15:20 +00:00

14 lines
148 B
LLVM

declare void %exit(int)
void %FP(void(int) * %F) {
call void %F(int 0)
ret void
}
int %main() {
call void %FP(void(int)* %exit)
ret int 1
}