aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/pointers.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-04-07 00:45:14 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-04-13 04:17:47 -0400
commitcaa3d6a4f4413c1cace517b073476780168f24cf (patch)
treebe23d04a3bc5e236b6b962d0c7f000ed08bfb655 /test/behavior/pointers.zig
parent3b22ce82643f2e547c85bf4b17477bc27133eb42 (diff)
downloadzig-caa3d6a4f4413c1cace517b073476780168f24cf.tar.gz
zig-caa3d6a4f4413c1cace517b073476780168f24cf.zip
x86_64: fix constant pointers to zero-bit types
These non-dereferencable pointers still need to have the correct alignment and non-null-ness.
Diffstat (limited to 'test/behavior/pointers.zig')
-rw-r--r--test/behavior/pointers.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/behavior/pointers.zig b/test/behavior/pointers.zig
index a03ad66bd2..626a1a7eb6 100644
--- a/test/behavior/pointers.zig
+++ b/test/behavior/pointers.zig
@@ -506,7 +506,6 @@ test "ptrToInt on a generic function" {
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
const S = struct {
fn generic(i: anytype) @TypeOf(i) {