aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/struct.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-02-22 01:30:49 -0500
committerGitHub <noreply@github.com>2022-02-22 01:30:49 -0500
commit6dc5ce931cbd208221be8588115e6d5e2fcb6eae (patch)
tree7176ce4247ac44aad5e5b0e37dbc058e1e2723f2 /test/behavior/struct.zig
parent74303a3d9591f188fb4dda96bf689c00ebbd24ca (diff)
parent25f73224f7f9921633e67d4b5ef12c6ec10406eb (diff)
downloadzig-6dc5ce931cbd208221be8588115e6d5e2fcb6eae.tar.gz
zig-6dc5ce931cbd208221be8588115e6d5e2fcb6eae.zip
Merge pull request #10959 from joachimschmidt557/stage2-aarch64
stage2 AArch64: misc improvements
Diffstat (limited to 'test/behavior/struct.zig')
-rw-r--r--test/behavior/struct.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig
index d059cccb60..bd04868f68 100644
--- a/test/behavior/struct.zig
+++ b/test/behavior/struct.zig
@@ -43,7 +43,6 @@ const StructWithFields = struct {
};
test "non-packed struct has fields padded out to the required alignment" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
const foo = StructWithFields{ .a = 5, .b = 1, .c = 10, .d = 2 };
@@ -67,7 +66,7 @@ const SmallStruct = struct {
};
test "lower unnamed constants" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest;
var foo = SmallStruct{ .a = 1, .b = 255 };
try expect(foo.first() == 1);
try expect(foo.second() == 255);
@@ -186,7 +185,6 @@ test "store member function in variable" {
}
test "member functions" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
const r = MemberFnRand{ .seed = 1234 };
try expect(r.getSeed() == 1234);
}