aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/switch_prong_err_enum.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-03-09 18:26:48 +0100
committerAndrew Kelley <andrew@ziglang.org>2022-03-09 13:53:20 -0700
commit90f08a69aaf8b5d6c36faa92d605afcd5fde0002 (patch)
tree18a320927655ba151a658a7003693a825dde96f1 /test/behavior/switch_prong_err_enum.zig
parent3ea113e00887638bf8bfb1d00bae5649db7ded35 (diff)
downloadzig-90f08a69aaf8b5d6c36faa92d605afcd5fde0002.tar.gz
zig-90f08a69aaf8b5d6c36faa92d605afcd5fde0002.zip
wasm: Enable passing behavior tests
This also adds some float-related instructions to MIR/Emit
Diffstat (limited to 'test/behavior/switch_prong_err_enum.zig')
-rw-r--r--test/behavior/switch_prong_err_enum.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/behavior/switch_prong_err_enum.zig b/test/behavior/switch_prong_err_enum.zig
index b68f21df6f..6abae1a7b6 100644
--- a/test/behavior/switch_prong_err_enum.zig
+++ b/test/behavior/switch_prong_err_enum.zig
@@ -1,4 +1,5 @@
const expect = @import("std").testing.expect;
+const builtin = @import("builtin");
var read_count: u64 = 0;
@@ -20,6 +21,10 @@ fn doThing(form_id: u64) anyerror!FormValue {
}
test "switch prong returns error enum" {
+ if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
switch (doThing(17) catch unreachable) {
FormValue.Address => |payload| {
try expect(payload == 1);