Newer
Older
UbixOS / contrib / netbsd-tests / usr.bin / xlint / lint1 / d_c9x_recursive_init.c
@Charlie Root Charlie Root on 31 Dec 2017 223 bytes More Cleanup
/* 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
};