NetBSD/tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c

17 lines
223 B
C

/* 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
};