mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
20 lines
255 B
Zig
20 lines
255 B
Zig
const builtin = @import("builtin");
|
|
|
|
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;
|
|
}
|