| ... | ... | @@ -320,8 +320,8 @@ test "Type.Union" { |
| 320 | 320 | .layout = .Auto, |
| 321 | 321 | .tag_type = null, |
| 322 | 322 | .fields = &[_]TypeInfo.UnionField{ |
| 323 | | .{ .name = "int", .field_type = i32 }, |
| 324 | | .{ .name = "float", .field_type = f32 }, |
| 323 | .{ .name = "int", .field_type = i32, .alignment = @alignOf(f32) }, |
| 324 | .{ .name = "float", .field_type = f32, .alignment = @alignOf(f32) }, |
| 325 | 325 | }, |
| 326 | 326 | .decls = &[_]TypeInfo.Declaration{}, |
| 327 | 327 | }, |
| ... | ... | @@ -336,8 +336,8 @@ test "Type.Union" { |
| 336 | 336 | .layout = .Packed, |
| 337 | 337 | .tag_type = null, |
| 338 | 338 | .fields = &[_]TypeInfo.UnionField{ |
| 339 | | .{ .name = "signed", .field_type = i32 }, |
| 340 | | .{ .name = "unsigned", .field_type = u32 }, |
| 339 | .{ .name = "signed", .field_type = i32, .alignment = @alignOf(i32) }, |
| 340 | .{ .name = "unsigned", .field_type = u32, .alignment = @alignOf(u32) }, |
| 341 | 341 | }, |
| 342 | 342 | .decls = &[_]TypeInfo.Declaration{}, |
| 343 | 343 | }, |
| ... | ... | @@ -363,8 +363,8 @@ test "Type.Union" { |
| 363 | 363 | .layout = .Auto, |
| 364 | 364 | .tag_type = Tag, |
| 365 | 365 | .fields = &[_]TypeInfo.UnionField{ |
| 366 | | .{ .name = "signed", .field_type = i32 }, |
| 367 | | .{ .name = "unsigned", .field_type = u32 }, |
| 366 | .{ .name = "signed", .field_type = i32, .alignment = @alignOf(i32) }, |
| 367 | .{ .name = "unsigned", .field_type = u32, .alignment = @alignOf(u32) }, |
| 368 | 368 | }, |
| 369 | 369 | .decls = &[_]TypeInfo.Declaration{}, |
| 370 | 370 | }, |
| ... | ... | @@ -392,7 +392,7 @@ test "Type.Union from Type.Enum" { |
| 392 | 392 | .layout = .Auto, |
| 393 | 393 | .tag_type = Tag, |
| 394 | 394 | .fields = &[_]TypeInfo.UnionField{ |
| 395 | | .{ .name = "working_as_expected", .field_type = u32 }, |
| 395 | .{ .name = "working_as_expected", .field_type = u32, .alignment = @alignOf(u32) }, |
| 396 | 396 | }, |
| 397 | 397 | .decls = &[_]TypeInfo.Declaration{}, |
| 398 | 398 | }, |
| ... | ... | @@ -408,7 +408,7 @@ test "Type.Union from regular enum" { |
| 408 | 408 | .layout = .Auto, |
| 409 | 409 | .tag_type = E, |
| 410 | 410 | .fields = &[_]TypeInfo.UnionField{ |
| 411 | | .{ .name = "working_as_expected", .field_type = u32 }, |
| 411 | .{ .name = "working_as_expected", .field_type = u32, .alignment = @alignOf(u32) }, |
| 412 | 412 | }, |
| 413 | 413 | .decls = &[_]TypeInfo.Declaration{}, |
| 414 | 414 | }, |