Annotation of embedaddon/confuse/tests/single_title_sections.c, revision 1.1.1.1
1.1 misho 1: /* Test sections with the CFGF_TITLE flag set but without CFGF_MULTI.
2: * There's no reason this shouldn't work. Noticed by Josh Kropf.
3: */
4:
5: #include "check_confuse.h"
6:
7: cfg_opt_t root_opts[] = {
8: CFG_END()
9: };
10:
11: cfg_opt_t opts[] = {
12: CFG_SEC("root", root_opts, CFGF_TITLE),
13: CFG_END()
14: };
15:
16: int
17: main(void)
18: {
19: cfg_t *cfg = cfg_init(opts, CFGF_NONE);
20: fail_unless(cfg);
21: cfg_free(cfg);
22:
23: return 0;
24: }
25:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>