mirror of
https://github.com/ziglang/zig.git
synced 2026-01-14 03:15:14 +00:00
18 lines
218 B
Zig
18 lines
218 B
Zig
const Namespace = struct {
|
|
test "thingy" {}
|
|
};
|
|
|
|
fn thingy(a: usize, b: usize) usize {
|
|
return a + b;
|
|
}
|
|
|
|
comptime {
|
|
_ = Namespace;
|
|
}
|
|
|
|
test "thingy" {}
|
|
|
|
test thingy {
|
|
if (thingy(1, 2) != 3) unreachable;
|
|
}
|