ce599fdf1d
Use obj/lint1 testX.c /dev/null to test. We don't descend here or provide any test infrastructure yet.
14 lines
235 B
C
14 lines
235 B
C
/* 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 } },
|
|
};
|