| ... | ... | @@ -734,23 +734,23 @@ test "zig fmt: while else err prong with no block" { |
| 734 | 734 | ); |
| 735 | 735 | } |
| 736 | 736 | |
| 737 | | //test "zig fmt: tagged union with enum values" { |
| 738 | | // try testCanonical( |
| 739 | | // \\const MultipleChoice2 = union(enum(u32)) { |
| 740 | | // \\ Unspecified1: i32, |
| 741 | | // \\ A: f32 = 20, |
| 742 | | // \\ Unspecified2: void, |
| 743 | | // \\ B: bool = 40, |
| 744 | | // \\ Unspecified3: i32, |
| 745 | | // \\ C: i8 = 60, |
| 746 | | // \\ Unspecified4: void, |
| 747 | | // \\ D: void = 1000, |
| 748 | | // \\ Unspecified5: i32, |
| 749 | | // \\}; |
| 750 | | // \\ |
| 751 | | // ); |
| 752 | | //} |
| 753 | | // |
| 737 | test "zig fmt: tagged union with enum values" { |
| 738 | try testCanonical( |
| 739 | \\const MultipleChoice2 = union(enum(u32)) { |
| 740 | \\ Unspecified1: i32, |
| 741 | \\ A: f32 = 20, |
| 742 | \\ Unspecified2: void, |
| 743 | \\ B: bool = 40, |
| 744 | \\ Unspecified3: i32, |
| 745 | \\ C: i8 = 60, |
| 746 | \\ Unspecified4: void, |
| 747 | \\ D: void = 1000, |
| 748 | \\ Unspecified5: i32, |
| 749 | \\}; |
| 750 | \\ |
| 751 | ); |
| 752 | } |
| 753 | |
| 754 | 754 | //test "zig fmt: allowzero pointer" { |
| 755 | 755 | // try testCanonical( |
| 756 | 756 | // \\const T = [*]allowzero const u8; |