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
7cfg_opt_t root_opts[] = {
8	CFG_END()
9};
10
11cfg_opt_t opts[] = {
12	CFG_SEC("root", root_opts, CFGF_TITLE),
13	CFG_END()
14};
15
16int
17main(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
26