mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Test indirect call
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5025 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e49a4b814
commit
e4adeb47ff
@ -1,7 +1,13 @@
|
||||
|
||||
declare void %exit(int)
|
||||
|
||||
|
||||
void %FP(void(int) * %F) {
|
||||
call void %F(int 0)
|
||||
ret void
|
||||
}
|
||||
|
||||
int %main() {
|
||||
call void %exit(int 0)
|
||||
call void %FP(void(int)* %exit)
|
||||
ret int 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user