a35b366eb6
start using zig-fmt-pointer-reform branch build of zig fmt to fix code to use the new syntax all of test/cases/* are processed, but there are more left to be done - all the std lib used by the behavior tests
21 lines
278 B
Zig
21 lines
278 B
Zig
const E = union(enum) {
|
|
A: [9]u8,
|
|
B: u64,
|
|
};
|
|
const S = struct {
|
|
x: u8,
|
|
y: E,
|
|
};
|
|
|
|
const assert = @import("std").debug.assert;
|
|
|
|
test "bug 394 fixed" {
|
|
const x = S {
|
|
.x = 3,
|
|
.y = E {
|
|
.B = 1,
|
|
},
|
|
};
|
|
assert(x.x == 3);
|
|
}
|