aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/underscore.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-02-22 14:15:09 +0100
committerJakub Konka <kubkon@jakubkonka.com>2022-02-22 21:57:42 +0100
commit25e4b16e25502ca5e76e4049ed9f727168782dde (patch)
tree947799ee1d22e621937c95842370cc7aee679412 /test/behavior/underscore.zig
parenta94267b2906e90aadf397b3f524e1069721fb496 (diff)
downloadzig-25e4b16e25502ca5e76e4049ed9f727168782dde.tar.gz
zig-25e4b16e25502ca5e76e4049ed9f727168782dde.zip
Port more behavior tests
Diffstat (limited to 'test/behavior/underscore.zig')
-rw-r--r--test/behavior/underscore.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/behavior/underscore.zig b/test/behavior/underscore.zig
index b701aac044..c15f8105aa 100644
--- a/test/behavior/underscore.zig
+++ b/test/behavior/underscore.zig
@@ -1,4 +1,5 @@
const std = @import("std");
+const builtin = @import("builtin");
const expect = std.testing.expect;
test "ignore lval with underscore" {
@@ -6,6 +7,10 @@ test "ignore lval with underscore" {
}
test "ignore lval with underscore (while loop)" {
+ if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
+
while (optionalReturnError()) |_| {
while (optionalReturnError()) |_| {
break;