NetBSD/regress/usr.bin/xlint/lint1/test2.c

14 lines
235 B
C
Raw Normal View History

/* C99 recursive struct/union initialization */
struct top {
int i;
char c;
union onion {
short us;
char uc;
} u;
char *s;
} c[] = {
{ .s = "foo", .c = 'b', .u = { .uc = 'c' } },
{ .i = 1, .c = 'a', .u = { .us = 2 } },
};