diff options
| author | Robin Voetter <robin@voetter.nl> | 2023-10-21 15:30:20 +0200 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2023-10-21 17:46:53 +0200 |
| commit | 1deec09f03d07aefcff1f886085c929c93669b5d (patch) | |
| tree | b8ceeaa4aef003c3c701252f5b5d4238be8a748e /test/behavior/struct.zig | |
| parent | 5090d75e48ba0a044997b93b0c5cf1f7dcec60f1 (diff) | |
| download | zig-1deec09f03d07aefcff1f886085c929c93669b5d.tar.gz zig-1deec09f03d07aefcff1f886085c929c93669b5d.zip | |
spirv: improve union operations
This removes the strategy where union with different active
fields would be generated, and instead simply pointer casts
the active field type where required. This also allows removing
spv.ptrType and using self.ptrType instead, and allows caching
all union types (because there is only the canonical one).
Diffstat (limited to 'test/behavior/struct.zig')
| -rw-r--r-- | test/behavior/struct.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index 8e7aa59844..2edd7fae02 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -736,7 +736,6 @@ test "packed struct with u0 field access" { test "access to global struct fields" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; g_foo.bar.value = 42; try expect(g_foo.bar.value == 42); |
