aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/enum.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-02-22 12:44:35 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-02-22 12:44:35 -0700
commit0d422ce342977b56247ec95aa0bd58045ee8b66b (patch)
tree009f7b991f8ffff7f92355384ebe67b937fea0ce /test/behavior/enum.zig
parente620b692c6c9f7c4b655f30aae5e51a87dc56e91 (diff)
downloadzig-0d422ce342977b56247ec95aa0bd58045ee8b66b.tar.gz
zig-0d422ce342977b56247ec95aa0bd58045ee8b66b.zip
Sema: auto-numbered enums increment from last tag value
This matches stage1 and the existing behavior tests.
Diffstat (limited to 'test/behavior/enum.zig')
-rw-r--r--test/behavior/enum.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/behavior/enum.zig b/test/behavior/enum.zig
index 119a999366..e8171a752a 100644
--- a/test/behavior/enum.zig
+++ b/test/behavior/enum.zig
@@ -873,8 +873,6 @@ test "method call on an enum" {
}
test "enum value allocation" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
const LargeEnum = enum(u32) {
A0 = 0x80000000,
A1,