]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_union_init4.c
MFC r305358,r305449,r305451,r306367,r306397,r309474:
[FreeBSD/stable/10.git] / contrib / netbsd-tests / usr.bin / xlint / lint1 / d_c99_union_init4.c
1 /* test .data.l[x] */
2 typedef struct {
3         int type;
4         union {
5                 char b[20];
6                 short s[10];
7                 long l[5];
8         } data;
9 } foo;
10
11
12 foo bar = {
13             .type = 3,
14             .data.l[0] = 4
15 };