zig/test/behavior/bugs/704.zig

10 lines
142 B
Zig
Raw Normal View History

const xxx = struct {
2021-06-20 09:10:22 +08:00
pub fn bar(self: *xxx) void {
_ = self;
}
};
test "bug 704" {
var x: xxx = undefined;
x.bar();
}