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