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, 9 months ago) by misho
Branches: confuse, MAIN
CVS tags: v3_3, HEAD
confuse 3.3

/* 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>