]> git.ipfire.org Git - thirdparty/glibc.git/blame - argp/bug-argp1.c
2.5-18.1
[thirdparty/glibc.git] / argp / bug-argp1.c
CommitLineData
0ecb606c
JJ
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 (&test_argp, argc, argv, 0, &i, NULL);
22 return 0;
23}
24
25#define TEST_FUNCTION do_test (argc, argv)
26#include "../test-skeleton.c"