zig/test/behavior/bugs/13159.zig
2023-09-23 12:36:56 -07:00

18 lines
340 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);
}