Update
This commit is contained in:
parent
3ee0c43cd1
commit
1006b231f0
9 changed files with 85 additions and 21 deletions
|
|
@ -51,7 +51,7 @@ int suic_main(void);
|
|||
|
||||
int suic_main(void) {
|
||||
int* arr = suic_alloc_array(NULL, sizeof(int), 4, (int[]){1, 2, 3, 4});
|
||||
int x = arr[0];
|
||||
int x = arr[2];
|
||||
return x;
|
||||
}
|
||||
|
||||
|
|
|
|||
BIN
tests/arrays.o
BIN
tests/arrays.o
Binary file not shown.
|
|
@ -2,6 +2,6 @@
|
|||
fn main() -> int do
|
||||
let arr = [1, 2, 3, 4];
|
||||
# let empty = [];
|
||||
let x = arr[0];
|
||||
let x = arr[1];
|
||||
x
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue