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