From 1f98c98fffb09bf15a9fc04ecd5f1fa38a4bd4b8 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 13 Jun 2025 04:41:21 -0400 Subject: x86_64: increase passing test coverage on windows Now that codegen has no references to linker state this is much easier. Closes #24153 --- test/behavior/basic.zig | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'test/behavior/basic.zig') diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index 5b7cd163be..c8166a06ab 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -302,19 +302,6 @@ test "array mult operator" { try expect(mem.eql(u8, "ab" ** 5, "ababababab")); } -const OpaqueA = opaque {}; -const OpaqueB = opaque {}; - -test "opaque types" { - if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; - - try expect(*OpaqueA != *OpaqueB); - - try expect(mem.eql(u8, @typeName(OpaqueA), "behavior.basic.OpaqueA")); - try expect(mem.eql(u8, @typeName(OpaqueB), "behavior.basic.OpaqueB")); -} - const global_a: i32 = 1234; const global_b: *const i32 = &global_a; const global_c: *const f32 = @as(*const f32, @ptrCast(global_b)); @@ -447,6 +434,7 @@ fn f2(x: bool) []const u8 { return (if (x) &fA else &fB)(); } +const OpaqueA = opaque {}; test "variable is allowed to be a pointer to an opaque type" { if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; @@ -1199,7 +1187,6 @@ test "arrays and vectors with big integers" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; - if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf and builtin.target.ofmt != .macho) return error.SkipZigTest; if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; -- cgit v1.2.3