Update test files, Add stdlib alloc

This commit is contained in:
MrLetsplay 2024-03-29 15:16:00 +01:00
parent 77d3bc638d
commit eec2a2c96e
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
4 changed files with 20 additions and 3 deletions

3
example/a.lang Normal file
View File

@ -0,0 +1,3 @@
u8 a() {
return 1u8;
}

3
example/b.lang Normal file
View File

@ -0,0 +1,3 @@
u8 b() {
return a() + 1u8;
}

View File

@ -1,3 +1,5 @@
void doNothing() { module sus;
u64 sus = 1u8;
(u8, u8) a() {
return 1u8, 2u8;
} }

9
stdlib/alloc.lang Normal file
View File

@ -0,0 +1,9 @@
module alloc;
u64 alloc(u64 size) {
return 0u64;
}
void free(u64 address) {
}