mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
11 lines
205 B
Zig
11 lines
205 B
Zig
const expectEqual = @import("std").testing.expectEqual;
|
|
|
|
test "noinline function call" {
|
|
try expectEqual(12, @call(.auto, add, .{ 3, 9 }));
|
|
}
|
|
|
|
fn add(a: i32, b: i32) i32 {
|
|
return a + b;
|
|
}
|
|
|
|
// test
|