mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 23:23:07 +00:00
* remove setFnTest builtin
* add test "name" { ... } syntax
* remove --check-unused argument. functions are always lazy now.
19 lines
304 B
Zig
19 lines
304 B
Zig
const assert = @import("std").debug.assert;
|
|
|
|
const Foo = struct {
|
|
a: void,
|
|
b: i32,
|
|
c: void,
|
|
};
|
|
|
|
test "compareVoidWithVoidCompileTimeKnown" {
|
|
comptime {
|
|
const foo = Foo {
|
|
.a = {},
|
|
.b = 1,
|
|
.c = {},
|
|
};
|
|
assert(foo.a == {});
|
|
}
|
|
}
|