zig/test/behavior/bugs/13159.zig
2022-12-10 21:51:46 +07:00

17 lines
339 B
Zig

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);
}