zig/test/standalone/use_alias/main.zig

11 lines
190 B
Zig
Raw Normal View History

const c = @import("c.zig");
const assert = @import("std").debug.assert;
test "symbol exists" {
2018-05-28 17:23:55 -07:00
var foo = c.Foo{
.a = 1,
.b = 1,
};
assert(foo.a + foo.b == 2);
}