aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/tuple.zig
diff options
context:
space:
mode:
authorCody Tapscott <topolarity@tapscott.me>2022-07-08 17:29:32 -0700
committerCody Tapscott <topolarity@tapscott.me>2022-07-08 19:51:35 -0700
commit51a8f52e6cdd53321572830efe3ac75cb09b5a09 (patch)
tree0b263b2bc46765c0c17aa4d06e30e1c7007c6176 /test/behavior/tuple.zig
parent2fff25fd220632cc6943680d3d6bbb1f21fa141f (diff)
downloadzig-51a8f52e6cdd53321572830efe3ac75cb09b5a09.tar.gz
zig-51a8f52e6cdd53321572830efe3ac75cb09b5a09.zip
stage2: Support `@offsetOf` for tuples and anon structs
Diffstat (limited to 'test/behavior/tuple.zig')
-rw-r--r--test/behavior/tuple.zig6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig
index 7cec421588..aa73dbc98b 100644
--- a/test/behavior/tuple.zig
+++ b/test/behavior/tuple.zig
@@ -221,20 +221,14 @@ test "fieldParentPtr of anon struct" {
}
test "offsetOf tuple" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest;
-
var x: u32 = 0;
const T = @TypeOf(.{ x, x });
-
_ = @offsetOf(T, "1");
}
test "offsetOf anon struct" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest;
-
var x: u32 = 0;
const T = @TypeOf(.{ .foo = x, .bar = x });
-
_ = @offsetOf(T, "bar");
}