mirror of
https://github.com/ziglang/zig.git
synced 2025-12-08 23:33:07 +00:00
17 lines
240 B
Zig
17 lines
240 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];
|
|
|
|
array[4] = array[1] + 5;
|
|
|
|
|
|
exit(0);
|
|
}
|