diff options
Diffstat (limited to 'test/behavior/enum.zig')
| -rw-r--r-- | test/behavior/enum.zig | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test/behavior/enum.zig b/test/behavior/enum.zig index 161f63b156..3f41b45342 100644 --- a/test/behavior/enum.zig +++ b/test/behavior/enum.zig @@ -11,8 +11,6 @@ fn shouldEqual(n: Number, expected: u3) !void { } test "enum to int" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - try shouldEqual(Number.Zero, 0); try shouldEqual(Number.One, 1); try shouldEqual(Number.Two, 2); @@ -558,8 +556,6 @@ const ValueCount257 = enum { }; test "enum sizes" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - comptime { try expect(@sizeOf(ValueCount1) == 0); try expect(@sizeOf(ValueCount2) == 1); @@ -569,8 +565,6 @@ test "enum sizes" { } test "enum literal equality" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const x = .hi; const y = .ok; const z = .hi; @@ -580,8 +574,6 @@ test "enum literal equality" { } test "enum literal cast to enum" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const Color = enum { Auto, Off, On }; var color1: Color = .Auto; @@ -590,8 +582,6 @@ test "enum literal cast to enum" { } test "peer type resolution with enum literal" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const Items = enum { one, two }; try expect(Items.two == .two); @@ -668,8 +658,6 @@ test "non-exhaustive enum" { } test "empty non-exhaustive enum" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const S = struct { const E = enum(u8) { _ }; @@ -732,8 +720,6 @@ const EnumWithTagValues = enum(u4) { D = 1 << 3, }; test "enum with tag values don't require parens" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - try expect(@enumToInt(EnumWithTagValues.C) == 0b0100); } @@ -750,8 +736,6 @@ const MultipleChoice2 = enum(u32) { }; test "cast integer literal to enum" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - try expect(@intToEnum(MultipleChoice2, 0) == MultipleChoice2.Unspecified1); try expect(@intToEnum(MultipleChoice2, 40) == MultipleChoice2.B); } @@ -783,8 +767,6 @@ const Small2 = enum(u2) { One, Two }; const Small = enum(u2) { One, Two, Three, Four }; test "set enum tag type" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - { var x = Small.One; x = Small.Two; @@ -798,8 +780,6 @@ test "set enum tag type" { } test "casting enum to its tag type" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - try testCastEnumTag(Small2.Two); comptime try testCastEnumTag(Small2.Two); } @@ -809,8 +789,6 @@ fn testCastEnumTag(value: Small2) !void { } test "enum with 1 field but explicit tag type should still have the tag type" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const Enum = enum(u8) { B = 2, }; @@ -818,8 +796,6 @@ test "enum with 1 field but explicit tag type should still have the tag type" { } test "signed integer as enum tag" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const SignedEnum = enum(i2) { A0 = -1, A1 = 0, @@ -832,8 +808,6 @@ test "signed integer as enum tag" { } test "enum with one member and custom tag type" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const E = enum(u2) { One, }; @@ -845,8 +819,6 @@ test "enum with one member and custom tag type" { } test "enum with one member and u1 tag type @enumToInt" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const Enum = enum(u1) { Test, }; @@ -854,8 +826,6 @@ test "enum with one member and u1 tag type @enumToInt" { } test "enum with comptime_int tag type" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const Enum = enum(comptime_int) { One = 3, Two = 2, @@ -865,8 +835,6 @@ test "enum with comptime_int tag type" { } test "enum with one member default to u0 tag type" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const E0 = enum { X }; comptime try expect(Tag(E0) == u0); } @@ -883,15 +851,11 @@ fn doALoopThing(id: EnumWithOneMember) void { } test "comparison operator on enum with one member is comptime known" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - doALoopThing(EnumWithOneMember.Eof); } const State = enum { Start }; test "switch on enum with one member is comptime known" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - var state = State.Start; switch (state) { State.Start => return, @@ -900,8 +864,6 @@ test "switch on enum with one member is comptime known" { } test "method call on an enum" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const S = struct { const E = enum { one, @@ -1141,8 +1103,6 @@ fn getC(data: *const BitFieldOfEnums) C { } test "enum literal in array literal" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - const Items = enum { one, two }; const array = [_]Items{ .one, .two }; |
