aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-11-03 07:47:53 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2024-11-04 08:29:42 +0100
commit96ea7d3e1cec61048c4bc3467b6014139ab532c8 (patch)
tree4d50e457e489bc8b4321c52a0bc0360c44dee13d /test
parent814a41b48f157fff1f48c4a14e92142d1e6e5748 (diff)
downloadzig-96ea7d3e1cec61048c4bc3467b6014139ab532c8.tar.gz
zig-96ea7d3e1cec61048c4bc3467b6014139ab532c8.zip
test: Disable `reinterpret packed union` on all big endian targets.
See: https://github.com/ziglang/zig/issues/21050
Diffstat (limited to 'test')
-rw-r--r--test/behavior/union.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/behavior/union.zig b/test/behavior/union.zig
index 5acb1b5abc..a3ce6169a5 100644
--- a/test/behavior/union.zig
+++ b/test/behavior/union.zig
@@ -1820,10 +1820,8 @@ test "reinterpret packed union" {
try comptime S.doTheTest();
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
- if (builtin.cpu.arch.isPowerPC()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21050
- if (builtin.cpu.arch.isMIPS()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21050
if (builtin.cpu.arch.isWasm()) return error.SkipZigTest; // TODO
- if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // TODO
+ if (builtin.cpu.arch.endian() == .big) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21050
try S.doTheTest();
}