diff options
| author | daurnimator <quae@daurnimator.com> | 2020-02-18 10:31:02 +1100 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2020-02-19 23:17:04 +1100 |
| commit | e270db956c6dc45f415e0b02b69db408d4a990b1 (patch) | |
| tree | 96ccac2953145d8b1846f7d4d77e39b5eaeb6d7b /lib/std/json.zig | |
| parent | d989396a3473836a9e2e269b2be9675574ead389 (diff) | |
| download | zig-e270db956c6dc45f415e0b02b69db408d4a990b1.tar.gz zig-e270db956c6dc45f415e0b02b69db408d4a990b1.zip | |
std: tagged unions are broken on arm64
Diffstat (limited to 'lib/std/json.zig')
| -rw-r--r-- | lib/std/json.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/json.zig b/lib/std/json.zig index 830f492e74..bb59b4e0f3 100644 --- a/lib/std/json.zig +++ b/lib/std/json.zig @@ -1657,6 +1657,9 @@ test "parse into tagged union" { } test "parseFree descends into tagged union" { + // tagged unions are broken on arm64: https://github.com/ziglang/zig/issues/4492 + if (std.builtin.arch == .aarch64) return error.SkipZigTest; + var fail_alloc = testing.FailingAllocator.init(testing.allocator, 1); const options = ParseOptions{ .allocator = &fail_alloc.allocator }; const T = union(enum) { |
