aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs/704.zig
blob: a3fb786da41634a15f7bf1bcb3fe3764469d5cce (plain)
1
2
3
4
5
6
7
8
9
10
11
const builtin = @import("builtin");

const xxx = struct {
    pub fn bar(self: *xxx) void {
        _ = self;
    }
};
test "bug 704" {
    var x: xxx = undefined;
    x.bar();
}