freebsd-dev/contrib/netbsd-tests/usr.bin/xlint/lint1/d_nested_structs.c
Enji Cooper 57718be8fa Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division
2014-10-02 23:26:49 +00:00

22 lines
376 B
C

/* 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, },
};