2 An issue in handling designated initializers where the order of initalization is reversed vs. the order of members.
18 void g1(int i
, char *c
)
24 void g2(int i
, char *c
, long l
)
31 void g3(int i
, char *c
, long l
)
38 void g4(int i
, char *c
, long l
)
47 BlockData1 block
= { .x
= 110, .current
= 0 };
49 g1 (block
.x
, block
.current
);
54 BlockData2 block
= { .x
= 110, .current
= 0 };
56 g2 (block
.x
, block
.current
, block
.l
);
61 BlockData2 block
= { .x
= 110, .l
= 42 };
63 g3 (block
.x
, block
.current
, block
.l
);
68 BlockData2 block
= { .x
= 110};
70 g4 (block
.x
, block
.current
, block
.l
);