]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/netbsd-tests/usr.bin/xlint/lint1/d_nested_structs.c
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / netbsd-tests / usr.bin / xlint / lint1 / d_nested_structs.c
1 /* Nested struct */
2 typedef void *EditLine;
3 typedef void *History;
4
5 typedef struct {
6         EditLine        *el;
7         History         *hist;
8 } el_mode_t;
9
10 struct el_modes_s {
11         el_mode_t command;
12         el_mode_t string;
13         el_mode_t filec;
14         el_mode_t mime_enc;
15 };
16
17 struct el_modes_s elm = {
18         .command  = { .el = 0, .hist = 0, },
19         .string   = { .el = 0, .hist = 0, },
20         .filec    = { .el = 0, .hist = 0, },
21 };