aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs/13159.zig
blob: eec01658e6e2e694b7349052ae24b4f8502ac95e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const builtin = @import("builtin");
const std = @import("std");
const expect = std.testing.expect;

const Bar = packed struct {
    const Baz = enum {
        fizz,
        buzz,
    };
};

test {
    if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO

    var foo = Bar.Baz.fizz;
    try expect(foo == .fizz);
}