File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / confuse / tests / single_title_sections.c
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:49:17 2021 UTC (3 years, 3 months ago) by misho
Branches: confuse, MAIN
CVS tags: v3_3, HEAD
confuse 3.3

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

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