feat: add support for arrays

This commit is contained in:
2026-04-23 00:19:11 +02:00
parent ec2aa771fa
commit 0a74262cee
11 changed files with 512 additions and 11 deletions
+16
View File
@@ -0,0 +1,16 @@
[code]
foreign fn putchar(c: i32) -> i32;
fn main() -> i32 {
let arr: [i32; 3] = [65, 66, 67];
putchar(arr[0]);
putchar(arr[1]);
putchar(arr[2]);
return 0;
}
[expected_return_code]
0
[expected_output]
ABC