aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/align.zig
diff options
context:
space:
mode:
authorCody Tapscott <topolarity@tapscott.me>2022-10-08 11:29:49 -0700
committerCody Tapscott <topolarity@tapscott.me>2022-10-13 12:53:20 -0700
commit83e2d3fb3701d77c8177f7b2b164cbd7c790a3ed (patch)
treef6e16b6d0405bd9760857435f3c162b464554927 /test/behavior/align.zig
parentf5f28e0d2c49d5c62914edf0bff8f1941eef721f (diff)
downloadzig-83e2d3fb3701d77c8177f7b2b164cbd7c790a3ed.tar.gz
zig-83e2d3fb3701d77c8177f7b2b164cbd7c790a3ed.zip
stage1: Skip new tests that never passed in stage1
This gets the behavior tests passing for stage1 again.
Diffstat (limited to 'test/behavior/align.zig')
-rw-r--r--test/behavior/align.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/behavior/align.zig b/test/behavior/align.zig
index a131cc8df7..2ebdda341a 100644
--- a/test/behavior/align.zig
+++ b/test/behavior/align.zig
@@ -566,6 +566,8 @@ test "@alignCast null" {
}
test "alignment of slice element" {
+ if (builtin.zig_backend == .stage1) return error.SkipZigTest;
+
const a: []align(1024) const u8 = undefined;
try expect(@TypeOf(&a[0]) == *align(1024) const u8);
}