master
1comptime {
2 @Struct(.auto, null, &.{"foo"}, &.{u32}, &.{.{ .@"comptime" = true }});
3}
4comptime {
5 @Struct(.@"extern", null, &.{"foo"}, &.{u32}, &.{.{ .@"comptime" = true, .default_value_ptr = &@as(u32, 10) }});
6}
7comptime {
8 @Struct(.@"packed", null, &.{"foo"}, &.{u32}, &.{.{ .@"align" = 4 }});
9}
10
11// error
12//
13// :2:46: error: comptime field without default initialization value
14// :5:51: error: extern struct fields cannot be marked comptime
15// :8:51: error: packed struct fields cannot be aligned
16