aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/type.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-07-16 16:32:49 +0300
committerVeikka Tuominen <git@vexu.eu>2022-07-23 15:40:11 +0300
commitff7ec4efb5a6da565b92bc7b129d03680a4a72bd (patch)
tree14006dc9e492015837a97328ccb85ac77f3e27e3 /test/behavior/type.zig
parent55fe34100f8b516480cf530eb58d00ea8b665765 (diff)
downloadzig-ff7ec4efb5a6da565b92bc7b129d03680a4a72bd.tar.gz
zig-ff7ec4efb5a6da565b92bc7b129d03680a4a72bd.zip
Sema: bad union field access safety
Diffstat (limited to 'test/behavior/type.zig')
-rw-r--r--test/behavior/type.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/type.zig b/test/behavior/type.zig
index f4a32e5df0..16a79a5122 100644
--- a/test/behavior/type.zig
+++ b/test/behavior/type.zig
@@ -412,7 +412,7 @@ test "Type.Union" {
const Untagged = @Type(.{
.Union = .{
- .layout = .Auto,
+ .layout = .Extern,
.tag_type = null,
.fields = &.{
.{ .name = "int", .field_type = i32, .alignment = @alignOf(f32) },