Annotation of embedaddon/confuse/tests/single_title_sections.c, revision 1.1.1.2

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: 
1.1.1.2 ! misho      16: int main(void)
1.1       misho      17: {
                     18:        cfg_t *cfg = cfg_init(opts, CFGF_NONE);
1.1.1.2 ! misho      19: 
1.1       misho      20:        fail_unless(cfg);
                     21:        cfg_free(cfg);
                     22: 
                     23:        return 0;
                     24: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>