2.5-18.1
[glibc.git] / argp / bug-argp1.c
bloba28cf4b9c72d213fe2251f896d821e0b8b141f07
1 #include <argp.h>
4 static const struct argp_option test_options[] =
6 { NULL, 'a', NULL, OPTION_DOC, NULL },
7 { NULL, 'b', NULL, OPTION_DOC, NULL },
8 { NULL, 0, NULL, 0, NULL }
9 };
11 static struct argp test_argp =
13 test_options
17 static int
18 do_test (int argc, char *argv[])
20 int i;
21 argp_parse (&test_argp, argc, argv, 0, &i, NULL);
22 return 0;
25 #define TEST_FUNCTION do_test (argc, argv)
26 #include "../test-skeleton.c"