xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_nested_structs.c (revision 3078531de10dcae44b253a35125c949ff4235284)
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 };
22