commit 0b857eebeb9e348370ab88797743eeed9fdffbe6 (tree)
parent dbe787a98404ff3d4b02e3807995cdffd25d3d96
Author: Justus Klausecker <justus@klausecker.de>
Date: Wed, 18 Mar 2026 15:44:27 +0100
test: disable 'switch on large types' behavior tests for wasm backend
The self-hosted wasm backend doesn't properly support very large integers yet.
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git 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
@@ -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) {