aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/basic.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-02-25 21:53:46 +0100
committerJakub Konka <kubkon@jakubkonka.com>2022-02-25 21:59:19 +0100
commite0f5627d4a9cb1b3a1361d70d40043c8c170b2af (patch)
treec46515f91973faaf597ab9758743bd2190652a2e /test/behavior/basic.zig
parent4b14384989362f93cd014628810c63b5cd9d3fff (diff)
downloadzig-e0f5627d4a9cb1b3a1361d70d40043c8c170b2af.tar.gz
zig-e0f5627d4a9cb1b3a1361d70d40043c8c170b2af.zip
x64+aarch64: check for pointer to zero-bit type when lowering decl
Unless the pointer is a pointer to a function, if the pointee type has zero-bits, we need to return `MCValue.none` as the `Decl` has not been lowered to memory, and therefore, any GOT reference will be wrong.
Diffstat (limited to 'test/behavior/basic.zig')
-rw-r--r--test/behavior/basic.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig
index dd3e85be67..d2d943940f 100644
--- a/test/behavior/basic.zig
+++ b/test/behavior/basic.zig
@@ -399,8 +399,6 @@ fn testTakeAddressOfParameter(f: f32) !void {
test "pointer to void return type" {
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest;
- if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .macos) return error.SkipZigTest;
try testPointerToVoidReturnType();
}