1#include <argp.h>
2
3
4static const struct argp_option test_options[] =
5{
6 { NULL, 'a', NULL, OPTION_DOC, NULL },
7 { NULL, 'b', NULL, OPTION_DOC, NULL },
8 { NULL, 0, NULL, 0, NULL }
9};
10
11static struct argp test_argp =
12{
13 test_options
14};
15
16
17static int
18do_test (int argc, char *argv[])
19{
20 int i;
21 argp_parse (argp: &test_argp, argc: argc, argv: argv, flags: 0, arg_index: &i, NULL);
22 return 0;
23}
24
25#define TEST_FUNCTION do_test (argc, argv)
26#include "../test-skeleton.c"
27

source code of glibc/argp/bug-argp1.c