mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
11 lines
190 B
Zig
11 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
|