summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/d_nested_structs.c
blob: a68859689d9bf105fa9caa3ce0a43ff25aa62147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*	$NetBSD: d_nested_structs.c,v 1.4 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "d_nested_structs.c"

/* lint1-extra-flags: -X 351 */

/* Nested struct */
typedef void *EditLine;
typedef void *History;

typedef struct {
	EditLine *el;
	History *hist;
} el_mode_t;

struct el_modes_s {
	el_mode_t command;
	el_mode_t string;
	el_mode_t filec;
	el_mode_t mime_enc;
};

struct el_modes_s elm = {
	.command  = { .el = 0, .hist = 0, },
	.string   = { .el = 0, .hist = 0, },
	.filec    = { .el = 0, .hist = 0, },
};