zig/test/standalone/use_alias/main.zig
Jimmi Holst Christensen 378d3e4403
Solve the return type ambiguity (#1628)
Changed container and initializer syntax
* <container> { ... } -> <container> . { ... }
* <exrp> { ... } -> <expr> . { ...}
2018-10-15 09:51:15 -04:00

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);
}