summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c
blob: df907cd7a3cd75832fc11a34d5dbc333615d45f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* C9X struct/union member init, with nested union and trailing member */
union node {
	void *next;
	char *data;
};
struct foo {
	int b;
	union node n;
	int c;
};

struct foo f = {
	.b = 1,
	.n = { .next = 0, },
	.c = 1
};
OpenPOWER on IntegriCloud