mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +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:
1 parent
6e49a4b814
commit
e4adeb47ff
1 file changed
+7
-1
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user