aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-06 19:06:48 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-12-06 19:06:48 -0700
commitc8aba15c222e5bb8cf5d2d48678761197f564351 (patch)
tree60a645691b4ccd5414c7e718c3326fc40fad1657 /test/behavior/type.zig
parentb7b905d227c0124778214f7a307be04b7086ea6a (diff)
downloadzig-c8aba15c222e5bb8cf5d2d48678761197f564351.tar.gz
zig-c8aba15c222e5bb8cf5d2d48678761197f564351.zip
remove references to stage1 in behavior tests
Good riddance.
Diffstat (limited to 'test/behavior/type.zig')
-rw-r--r--test/behavior/type.zig13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/behavior/type.zig b/test/behavior/type.zig
index 556a8c990d..48c1e90812 100644
--- a/test/behavior/type.zig
+++ b/test/behavior/type.zig
@@ -229,7 +229,7 @@ test "Type.Vector" {
}
test "Type.AnyFrame" {
- if (builtin.zig_backend != .stage1) {
+ if (true) {
// https://github.com/ziglang/zig/issues/6025
return error.SkipZigTest;
}
@@ -246,8 +246,6 @@ fn add(a: i32, b: i32) i32 {
}
test "Type.ErrorSet" {
- if (builtin.zig_backend == .stage1) return error.SkipZigTest;
-
try testing.expect(@Type(.{ .ErrorSet = null }) == anyerror);
// error sets don't compare equal so just check if they compile
@@ -369,12 +367,7 @@ test "Type.Enum" {
try testing.expectEqual(@as(u8, 5), @enumToInt(Foo.b));
const Bar = @Type(.{
.Enum = .{
- // stage2 only has auto layouts
- .layout = if (builtin.zig_backend == .stage1)
- .Extern
- else
- .Auto,
-
+ .layout = .Auto,
.tag_type = u32,
.fields = &.{
.{ .name = "a", .value = 1 },
@@ -501,8 +494,6 @@ test "Type.Union from regular enum" {
}
test "Type.Fn" {
- if (builtin.zig_backend == .stage1) return error.SkipZigTest;
-
if (true) {
// https://github.com/ziglang/zig/issues/12360
return error.SkipZigTest;