zig/test/behavior/bugs/3367.zig
Jacob Young 525dcaecba behavior: enable stage2_c tests that are currently passing
Also fix C warnings triggered by these tests.
2022-10-25 05:11:28 -04:00

16 lines
263 B
Zig

const builtin = @import("builtin");
const Foo = struct {
usingnamespace Mixin;
};
const Mixin = struct {
pub fn two(self: Foo) void {
_ = self;
}
};
test "container member access usingnamespace decls" {
var foo = Foo{};
foo.two();
}