mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
13 lines
194 B
Zig
13 lines
194 B
Zig
pub fn main() void {
|
|
var x: usize = 3;
|
|
const y = add(1, 2, x);
|
|
if (y - 6 != 0) unreachable;
|
|
}
|
|
|
|
inline fn add(a: usize, b: usize, c: usize) usize {
|
|
return a + b + c;
|
|
}
|
|
|
|
// run
|
|
//
|