diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-07-08 17:30:06 -0700 |
|---|---|---|
| committer | Cody Tapscott <topolarity@tapscott.me> | 2022-07-08 19:52:23 -0700 |
| commit | c830606bbee72054749d4bf56e9215cac7785afa (patch) | |
| tree | 36427f467bfa85cbf5837d64b8c8f41add6b2d3f /test/behavior/tuple.zig | |
| parent | 51a8f52e6cdd53321572830efe3ac75cb09b5a09 (diff) | |
| download | zig-c830606bbee72054749d4bf56e9215cac7785afa.tar.gz zig-c830606bbee72054749d4bf56e9215cac7785afa.zip | |
stage2: Support `@fieldParentPtr` for tuples and anon structs
Diffstat (limited to 'test/behavior/tuple.zig')
| -rw-r--r-- | test/behavior/tuple.zig | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig index aa73dbc98b..2442ae3629 100644 --- a/test/behavior/tuple.zig +++ b/test/behavior/tuple.zig @@ -205,7 +205,10 @@ test "initializing anon struct with explicit type" { } test "fieldParentPtr of tuple" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; var x: u32 = 0; const tuple = .{ x, x }; @@ -213,7 +216,10 @@ test "fieldParentPtr of tuple" { } test "fieldParentPtr of anon struct" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; var x: u32 = 0; const anon_st = .{ .foo = x, .bar = x }; |
