aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/enum.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-01 23:46:57 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-01 23:46:57 -0700
commited2364a1480f99a7380285cec15ff1962d9df519 (patch)
treeda488724987e43e11a5938589a9df5b92c79d8c4 /test/behavior/enum.zig
parent6f303c01f3e06fe8203563065ea32537f6eff456 (diff)
downloadzig-ed2364a1480f99a7380285cec15ff1962d9df519.tar.gz
zig-ed2364a1480f99a7380285cec15ff1962d9df519.zip
stage2: introduce anonymous struct literals
Diffstat (limited to 'test/behavior/enum.zig')
-rw-r--r--test/behavior/enum.zig16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/behavior/enum.zig b/test/behavior/enum.zig
index d47ec50f5d..fda8cfe745 100644
--- a/test/behavior/enum.zig
+++ b/test/behavior/enum.zig
@@ -972,22 +972,6 @@ test "enum literal casting to error union with payload enum" {
try expect((try bar) == Bar.B);
}
-test "exporting enum type and value" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
- const S = struct {
- const E = enum(c_int) { one, two };
- comptime {
- @export(E, .{ .name = "E" });
- }
- const e: E = .two;
- comptime {
- @export(e, .{ .name = "e" });
- }
- };
- try expect(S.e == .two);
-}
-
test "constant enum initialization with differing sizes" {
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;