aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/pointers.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-05-17 01:52:02 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-05-17 23:50:38 -0700
commitb6798c26efc4689cf35c5f4ac0436b4510a1f813 (patch)
tree9507321f623264de9c5bef41ff53c19c88f09bd3 /test/behavior/pointers.zig
parent95f5e17e49d32a301d6a9d6f9948719d65469b09 (diff)
downloadzig-b6798c26efc4689cf35c5f4ac0436b4510a1f813.tar.gz
zig-b6798c26efc4689cf35c5f4ac0436b4510a1f813.zip
stage2: fix pointer arithmetic result type
This makes it so the result of doing pointer arithmetic creates a new pointer type that has adjusted alignment.
Diffstat (limited to 'test/behavior/pointers.zig')
-rw-r--r--test/behavior/pointers.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/behavior/pointers.zig b/test/behavior/pointers.zig
index 42939986d4..07bab40135 100644
--- a/test/behavior/pointers.zig
+++ b/test/behavior/pointers.zig
@@ -377,8 +377,6 @@ test "pointer to array at fixed address" {
}
test "pointer arithmetic affects the alignment" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
{
var ptr: [*]align(8) u32 = undefined;
var x: usize = 1;