zig/test/standalone/use_alias/main.zig
2018-05-29 04:23:38 -04:00

11 lines
190 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);
}