diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-06-29 19:01:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-06-30 02:43:05 -0400 |
| commit | c248af3bdcd17c334e742d53a7ac7bda2422a688 (patch) | |
| tree | 8d47cfaa0f653ef1b835c6e250178c763270000a /lib/std | |
| parent | 54454fd0102af8b25dbc85751d37fd265380d920 (diff) | |
| download | zig-c248af3bdcd17c334e742d53a7ac7bda2422a688.tar.gz zig-c248af3bdcd17c334e742d53a7ac7bda2422a688.zip | |
LLVM: fix lowering of untagged union types
The LLVM backend was calculating the amount of padding solely based
on the payload size. However, in the case where there is no union
tag, this fails to take into account alignment.
Closes #11857
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/net/test.zig | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/std/net/test.zig b/lib/std/net/test.zig index 710eb91376..5d350be7e0 100644 --- a/lib/std/net/test.zig +++ b/lib/std/net/test.zig @@ -5,7 +5,6 @@ const mem = std.mem; const testing = std.testing; test "parse and render IPv6 addresses" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; if (builtin.os.tag == .wasi) return error.SkipZigTest; var buffer: [100]u8 = undefined; @@ -68,7 +67,6 @@ test "invalid but parseable IPv6 scope ids" { } test "parse and render IPv4 addresses" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; if (builtin.os.tag == .wasi) return error.SkipZigTest; var buffer: [18]u8 = undefined; @@ -93,7 +91,6 @@ test "parse and render IPv4 addresses" { } test "parse and render UNIX addresses" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; if (builtin.os.tag == .wasi) return error.SkipZigTest; if (!net.has_unix_sockets) return error.SkipZigTest; |
