| 1 | const E = enum(u0) { |
| 2 | the_only_possible_value, |
| 3 | }; |
| 4 | |
| 5 | const S = struct {}; |
| 6 | |
| 7 | const T = extern struct { |
| 8 | foo: u0 = 0, |
| 9 | bar: void = {}, |
| 10 | baz: struct {} = .{}, |
| 11 | ayy: E = .the_only_possible_value, |
| 12 | arr: [0]u0 = .{}, |
| 13 | matey: [128]void = @splat({}), |
| 14 | running_out_of_ideas: packed struct {} = .{}, |
| 15 | one_more: [256]S = @splat(.{}), |
| 16 | }; |
| 17 | |
| 18 | test { |
| 19 | var t: T = .{}; |
| 20 | _ = &t; |
| 21 | } |