authorgravatar for justus@klausecker.deJustus Klausecker <justus@klausecker.de> 2026-03-18 15:44:27+01:00
committergravatar for justus@klausecker.deJustus Klausecker <justus@klausecker.de> 2026-03-18 15:49:14+01:00
log0b857eebeb9e348370ab88797743eeed9fdffbe6
treec09bc0a16949b6e6a223f7e1b4655204192901e6
parentdbe787a98404ff3d4b02e3807995cdffd25d3d96

test: disable 'switch on large types' behavior tests for wasm backend

The self-hosted wasm backend doesn't properly support very large integers yet.

2 files changed, 4 insertions(+), 0 deletions(-)

test/behavior/switch.zig+2
...@@ -1459,6 +1459,8 @@ test "switch on nested packed containers" {...@@ -1459,6 +1459,8 @@ test "switch on nested packed containers" {
1459}1459}
14601460
1461test "switch on large types" {1461test "switch on large types" {
1462 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;
1463
1462 const S = struct {1464 const S = struct {
1463 fn doTheTest(a: u128, b: i500) !void {1465 fn doTheTest(a: u128, b: i500) !void {
1464 switch (a) {1466 switch (a) {
test/behavior/switch_loop.zig+2
...@@ -566,6 +566,8 @@ test "switch loop with packed unions with OPV" {...@@ -566,6 +566,8 @@ test "switch loop with packed unions with OPV" {
566}566}
567567
568test "switch loop on large types" {568test "switch loop on large types" {
569 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;
570
569 const S = struct {571 const S = struct {
570 fn doTheTest(a: u128, b: i500) !void {572 fn doTheTest(a: u128, b: i500) !void {
571 label: switch (a) {573 label: switch (a) {