From 0b857eebeb9e348370ab88797743eeed9fdffbe6 Mon Sep 17 00:00:00 2001 From: Justus Klausecker Date: Wed, 18 Mar 2026 15:44:27 +0100 Subject: [PATCH] test: disable 'switch on large types' behavior tests for wasm backend The self-hosted wasm backend doesn't properly support very large integers yet. --- test/behavior/switch.zig | 2 ++ test/behavior/switch_loop.zig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/behavior/switch.zig b/test/behavior/switch.zig index 1cdbbda41e..2eb633f479 100644 --- a/test/behavior/switch.zig +++ b/test/behavior/switch.zig @@ -1459,6 +1459,8 @@ test "switch on nested packed containers" { } test "switch on large types" { + if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; + const S = struct { fn doTheTest(a: u128, b: i500) !void { switch (a) { diff --git a/test/behavior/switch_loop.zig b/test/behavior/switch_loop.zig index 4b8cdc71b5..14794d2d12 100644 --- a/test/behavior/switch_loop.zig +++ b/test/behavior/switch_loop.zig @@ -566,6 +566,8 @@ test "switch loop with packed unions with OPV" { } test "switch loop on large types" { + if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; + const S = struct { fn doTheTest(a: u128, b: i500) !void { label: switch (a) {