13 lines
176 B
Zig
13 lines
176 B
Zig
|
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);
|
||
|
}
|