zig/test/cases/adding_numbers_at_runtime_and_comptime.2.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
//