diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-22 01:30:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-22 01:30:49 -0500 |
| commit | 6dc5ce931cbd208221be8588115e6d5e2fcb6eae (patch) | |
| tree | 7176ce4247ac44aad5e5b0e37dbc058e1e2723f2 /test/behavior/basic.zig | |
| parent | 74303a3d9591f188fb4dda96bf689c00ebbd24ca (diff) | |
| parent | 25f73224f7f9921633e67d4b5ef12c6ec10406eb (diff) | |
| download | zig-6dc5ce931cbd208221be8588115e6d5e2fcb6eae.tar.gz zig-6dc5ce931cbd208221be8588115e6d5e2fcb6eae.zip | |
Merge pull request #10959 from joachimschmidt557/stage2-aarch64
stage2 AArch64: misc improvements
Diffstat (limited to 'test/behavior/basic.zig')
| -rw-r--r-- | test/behavior/basic.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index 05c1f1cda3..d5081ca636 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -48,7 +48,7 @@ const g1: i32 = 1233 + 1; var g2: i32 = 0; test "global variables" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest; try expect(g2 == 0); g2 = g1; try expect(g2 == 1234); @@ -327,7 +327,6 @@ const FnPtrWrapper = struct { }; test "const ptr from var variable" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; var x: u64 = undefined; @@ -611,7 +610,7 @@ test "comptime cast fn to ptr" { } test "equality compare fn ptrs" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest; if (builtin.zig_backend == .stage1) return error.SkipZigTest; var a = &emptyFn; @@ -619,7 +618,7 @@ test "equality compare fn ptrs" { } test "self reference through fn ptr field" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest; if (builtin.zig_backend == .stage1) return error.SkipZigTest; if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
