mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
12 lines
210 B
Zig
12 lines
210 B
Zig
const c = @import("c.zig");
|
|
const expect = @import("std").testing.expect;
|
|
|
|
test "symbol exists" {
|
|
var foo = c.Foo{
|
|
.a = 1,
|
|
.b = 1,
|
|
};
|
|
_ = &foo;
|
|
try expect(foo.a + foo.b == 2);
|
|
}
|