diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-02-25 21:53:46 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-02-25 21:59:19 +0100 |
| commit | e0f5627d4a9cb1b3a1361d70d40043c8c170b2af (patch) | |
| tree | c46515f91973faaf597ab9758743bd2190652a2e /test/behavior/struct.zig | |
| parent | 4b14384989362f93cd014628810c63b5cd9d3fff (diff) | |
| download | zig-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/struct.zig')
| -rw-r--r-- | test/behavior/struct.zig | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index e3b0bb193b..a1d60632a9 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -370,8 +370,6 @@ test "empty struct method call" { if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .macos) return error.SkipZigTest; // TODO const es = EmptyStruct{}; try expect(es.method() == 1234); |
