mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-31 09:11:13 +00:00
20 lines
271 B
LLVM
20 lines
271 B
LLVM
|
|
||
|
%MidFnTy = type void (\2*)
|
||
|
|
||
|
implementation
|
||
|
|
||
|
int %main() {
|
||
|
call %MidFnTy* %Mid(%MidFnTy* %Mid)
|
||
|
ret int 0
|
||
|
}
|
||
|
|
||
|
internal void %Mid(%MidFnTy *%F) {
|
||
|
call void %Bottom(%MidFnTy* %F)
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
internal void %Bottom(%MidFnTy* %F) {
|
||
|
call void %F(%MidFnTy* %Mid)
|
||
|
ret void
|
||
|
}
|