mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
12 lines
190 B
Zig
12 lines
190 B
Zig
const expect = @import("std").testing.expect;
|
|
|
|
test "noinline function call" {
|
|
try expect(@call(.auto, add, .{3, 9}) == 12);
|
|
}
|
|
|
|
fn add(a: i32, b: i32) i32 {
|
|
return a + b;
|
|
}
|
|
|
|
// test
|