xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_struct_init.c (revision 6ba2210ee039f2f12878c217bcf058e9c8b26b29)
1 /* C99 struct initialization */
2 struct {
3 	int i;
4 	char *s;
5 } c[] = {
6 	{ .i =  2, },
7 	{ .s =  "foo" },
8 	{ .i =  1, .s = "bar" },
9 	{ .s =  "foo", .i = -1 },
10 };
11