zig/test/cases/typedef.zig

13 lines
176 B
Zig
Raw Normal View History

const assert = @import("std").debug.assert;
type int = u8;
fn add(a: int, b: int) -> int {
a + b
}
fn typedef() {
@setFnTest(this);
assert(add(12, 34) == 46);
}