mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
17 lines
249 B
Zig
17 lines
249 B
Zig
export executable "arrays";
|
|
|
|
#link("c")
|
|
extern {
|
|
fn puts(s: *const u8) -> i32;
|
|
fn exit(code: i32) -> unreachable;
|
|
}
|
|
|
|
export fn _start() -> unreachable {
|
|
let mut array : [i32; 10];
|
|
|
|
exit(array[1]);
|
|
|
|
//array[4] = array[1] + 5;
|
|
|
|
|
|
}
|