bug-argp1.c 434 B

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