mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
17 lines
339 B
Zig
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);
|
|
}
|