diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-29 20:33:29 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-29 20:33:29 -0700 |
| commit | 474ade88b58b6fd7239049ec445129eabafa3cbd (patch) | |
| tree | d7d27c3812dfaf85be4d6aa98b3b31aae1054a6b /lib/std/meta.zig | |
| parent | 8944240aec6b53106856bb0ac2eb9da180f6b326 (diff) | |
| download | zig-474ade88b58b6fd7239049ec445129eabafa3cbd.tar.gz zig-474ade88b58b6fd7239049ec445129eabafa3cbd.zip | |
std: fix compile errors found by stage2 AstGen
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index a09ddd7307..2f9c7ccd96 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -348,9 +348,6 @@ test "std.meta.containerLayout" { const E1 = enum { A, }; - const E3 = extern enum { - A, - }; const S1 = struct {}; const S2 = packed struct {}; const S3 = extern struct {}; @@ -365,7 +362,6 @@ test "std.meta.containerLayout" { }; testing.expect(containerLayout(E1) == .Auto); - testing.expect(containerLayout(E3) == .Extern); testing.expect(containerLayout(S1) == .Auto); testing.expect(containerLayout(S2) == .Packed); testing.expect(containerLayout(S3) == .Extern); @@ -1026,7 +1022,7 @@ test "std.meta.cast" { testing.expectEqual(@intToPtr(?*c_void, 2), cast(?*c_void, @intToPtr(*u8, 2))); - const C_ENUM = extern enum(c_int) { + const C_ENUM = enum(c_int) { A = 0, B, C, @@ -1109,7 +1105,7 @@ pub fn sizeof(target: anytype) usize { } test "sizeof" { - const E = extern enum(c_int) { One, _ }; + const E = enum(c_int) { One, _ }; const S = extern struct { a: u32 }; const ptr_size = @sizeOf(*c_void); |
