authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-02-18 10:31:02+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-02-19 23:17:04+11:00
loge270db956c6dc45f415e0b02b69db408d4a990b1
tree96ccac2953145d8b1846f7d4d77e39b5eaeb6d7b
parentd989396a3473836a9e2e269b2be9675574ead389
signaturelock-open Commit is signed but in an unrecognized format.

std: tagged unions are broken on arm64


1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/json.zig+3
...@@ -1657,6 +1657,9 @@ test "parse into tagged union" {...@@ -1657,6 +1657,9 @@ test "parse into tagged union" {
1657}1657}
16581658
1659test "parseFree descends into tagged union" {1659test "parseFree descends into tagged union" {
1660 // tagged unions are broken on arm64: https://github.com/ziglang/zig/issues/4492
1661 if (std.builtin.arch == .aarch64) return error.SkipZigTest;
1662
1660 var fail_alloc = testing.FailingAllocator.init(testing.allocator, 1);1663 var fail_alloc = testing.FailingAllocator.init(testing.allocator, 1);
1661 const options = ParseOptions{ .allocator = &fail_alloc.allocator };1664 const options = ParseOptions{ .allocator = &fail_alloc.allocator };
1662 const T = union(enum) {1665 const T = union(enum) {