xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_struct_init.c (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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