aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/struct.zig
diff options
context:
space:
mode:
authorjoachimschmidt557 <joachim.schmidt557@outlook.com>2022-02-21 00:56:47 +0100
committerjoachimschmidt557 <joachim.schmidt557@outlook.com>2022-02-21 23:05:16 +0100
commit25f73224f7f9921633e67d4b5ef12c6ec10406eb (patch)
treeecdaa6426a045247fa17e591edb7af7700be147d /test/behavior/struct.zig
parent2ba1ef165aa3fb5da40d05fed9a120630b2529d2 (diff)
downloadzig-25f73224f7f9921633e67d4b5ef12c6ec10406eb.tar.gz
zig-25f73224f7f9921633e67d4b5ef12c6ec10406eb.zip
stage2 AArch64: pass a few more behavior tests
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 3e92b4374b..c85f05e4ff 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);
}