mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
12 lines
250 B
LLVM
12 lines
250 B
LLVM
|
|
||
|
int %main() {
|
||
|
%X = malloc int ; constant size
|
||
|
%Y = malloc int, uint 100 ; constant size
|
||
|
%u = add uint 1, 2
|
||
|
%Z = malloc int, uint %u ; variable size
|
||
|
free int* %X
|
||
|
free int* %Y
|
||
|
free int* %Z
|
||
|
ret int 0
|
||
|
}
|