| 1 | const std = @import("std"); |
| 2 | const expectEqualSlices = std.testing.expectEqualSlices; |
| 3 | |
| 4 | const Small2 = union(enum) { |
| 5 | a: i32, |
| 6 | b: bool, |
| 7 | c: u8, |
| 8 | }; |
| 9 | test "@tagName" { |
| 10 | try expectEqualSlices(u8, "a", @tagName(Small2.a)); |
| 11 | } |
| 12 | |
| 13 | // test |