diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-12-06 19:06:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-12-06 19:06:48 -0700 |
| commit | c8aba15c222e5bb8cf5d2d48678761197f564351 (patch) | |
| tree | 60a645691b4ccd5414c7e718c3326fc40fad1657 /test/behavior/basic.zig | |
| parent | b7b905d227c0124778214f7a307be04b7086ea6a (diff) | |
| download | zig-c8aba15c222e5bb8cf5d2d48678761197f564351.tar.gz zig-c8aba15c222e5bb8cf5d2d48678761197f564351.zip | |
remove references to stage1 in behavior tests
Good riddance.
Diffstat (limited to 'test/behavior/basic.zig')
| -rw-r--r-- | test/behavior/basic.zig | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index 80df087920..d5f7d92d9d 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -198,11 +198,6 @@ const OpaqueA = opaque {}; const OpaqueB = opaque {}; test "opaque types" { - if (builtin.zig_backend == .stage1) { - // stage1 gets the type names wrong - return error.SkipZigTest; - } - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO try expect(*OpaqueA != *OpaqueB); @@ -290,7 +285,6 @@ fn fB() []const u8 { test "call function pointer in struct" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - if (builtin.zig_backend == .stage1) return error.SkipZigTest; try expect(mem.eql(u8, f3(true), "a")); try expect(mem.eql(u8, f3(false), "b")); @@ -329,7 +323,6 @@ fn copy(src: *const u64, dst: *u64) void { } test "call result of if else expression" { - if (builtin.zig_backend == .stage1) return error.SkipZigTest; // stage1 has different function pointers if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; @@ -573,22 +566,16 @@ fn emptyFn() void {} const addr1 = @ptrCast(*const u8, &emptyFn); test "comptime cast fn to ptr" { - if (builtin.zig_backend == .stage1) return error.SkipZigTest; - const addr2 = @ptrCast(*const u8, &emptyFn); comptime try expect(addr1 == addr2); } test "equality compare fn ptrs" { - if (builtin.zig_backend == .stage1) return error.SkipZigTest; - var a = &emptyFn; try expect(a == a); } test "self reference through fn ptr field" { - if (builtin.zig_backend == .stage1) return error.SkipZigTest; - const S = struct { const A = struct { f: *const fn (A) u8, @@ -783,10 +770,6 @@ test "auto created variables have correct alignment" { } test "extern variable with non-pointer opaque type" { - if (builtin.zig_backend == .stage1) { - // Regressed with LLVM 14 - return error.SkipZigTest; - } if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO @@ -963,7 +946,7 @@ test "array type comes from generic function" { } test "generic function uses return type of other generic function" { - if (builtin.zig_backend != .stage1) { + if (true) { // This test has been failing sporadically on the CI. // It's not enough to verify that it works locally; we need to diagnose why // it fails on the CI sometimes before turning it back on. @@ -1067,7 +1050,6 @@ test "inline call of function with a switch inside the return statement" { } test "namespace lookup ignores decl causing the lookup" { - if (builtin.zig_backend == .stage1) return error.SkipZigTest; if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
