aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-05-28 22:55:07 -0400
committerGitHub <noreply@github.com>2020-05-28 22:55:07 -0400
commit34101127c60c893db77136b9a53501a2e2a3ea4f (patch)
tree8a9321bcf433af57d0ce27bd9ccea20cfe276a9f /lib/std
parentdadc4327e109e1cb13ae7e6132db586f5f849396 (diff)
parent4f24ab9cfca8a94e3ae7e4269fb8306059ac38cd (diff)
downloadzig-34101127c60c893db77136b9a53501a2e2a3ea4f.tar.gz
zig-34101127c60c893db77136b9a53501a2e2a3ea4f.zip
Merge pull request #5463 from kubkon/link-issue-wasm-vector
Link issue to the failing test case: miscompiled Vector in wasm
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/fmt.zig9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig
index b9ee9f797a..671f25a943 100644
--- a/lib/std/fmt.zig
+++ b/lib/std/fmt.zig
@@ -1707,15 +1707,16 @@ test "vector" {
// https://github.com/ziglang/zig/issues/4486
return error.SkipZigTest;
}
- if (builtin.arch != .wasm32) {
- // TODO investigate why this fails on wasm32
- const vbool: std.meta.Vector(4, bool) = [_]bool{ true, false, true, false };
- try testFmt("{ true, false, true, false }", "{}", .{vbool});
+ if (builtin.arch == .wasm32) {
+ // https://github.com/ziglang/zig/issues/5339
+ return error.SkipZigTest;
}
+ const vbool: std.meta.Vector(4, bool) = [_]bool{ true, false, true, false };
const vi64: std.meta.Vector(4, i64) = [_]i64{ -2, -1, 0, 1 };
const vu64: std.meta.Vector(4, u64) = [_]u64{ 1000, 2000, 3000, 4000 };
+ try testFmt("{ true, false, true, false }", "{}", .{vbool});
try testFmt("{ -2, -1, 0, 1 }", "{}", .{vi64});
try testFmt("{ - 2, - 1, + 0, + 1 }", "{d:5}", .{vi64});
try testFmt("{ 1000, 2000, 3000, 4000 }", "{}", .{vu64});