mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
12 lines
167 B
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
|