File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / confuse / tests / single_title_sections.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Jan 24 14:48:56 2017 UTC (7 years, 7 months ago) by misho
Branches: confuse, MAIN
CVS tags: v2_7, HEAD
confuse 2.7

/* Test sections with the CFGF_TITLE flag set but without CFGF_MULTI.
 * There's no reason this shouldn't work. Noticed by Josh Kropf.
 */

#include "check_confuse.h"

cfg_opt_t root_opts[] = {
	CFG_END()
};

cfg_opt_t opts[] = {
	CFG_SEC("root", root_opts, CFGF_TITLE),
	CFG_END()
};

int
main(void)
{
	cfg_t *cfg = cfg_init(opts, CFGF_NONE);
	fail_unless(cfg);
	cfg_free(cfg);

	return 0;
}


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