zig/doc/langref/inline_call.zig

12 lines
167 B
Zig

test "inline function call" {
if (foo(1200, 34) != 1234) {
@compileError("bad");
}
}
inline fn foo(a: i32, b: i32) i32 {
return a + b;
}
// test