mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
378d3e4403
Changed container and initializer syntax * <container> { ... } -> <container> . { ... } * <exrp> { ... } -> <expr> . { ...}
11 lines
191 B
Zig
11 lines
191 B
Zig
const c = @import("c.zig");
|
|
const assert = @import("std").debug.assert;
|
|
|
|
test "symbol exists" {
|
|
var foo = c.Foo.{
|
|
.a = 1,
|
|
.b = 1,
|
|
};
|
|
assert(foo.a + foo.b == 2);
|
|
}
|