]> git.draconx.ca Git - cdecl99.git/blobdiff - test/randomdecl.c
Add a test case to check if libcdecl can parse its own output.
[cdecl99.git] / test / randomdecl.c
index 12728ccb7fa09d0aafe87712bb0b44cf04d2949c..5e8a4a94f59ac54d1653d43dd7e884eb98df9444 100644 (file)
@@ -40,15 +40,6 @@ static const struct option lopts[] = {
        { 0 }
 };
 
-static void print_version()
-{
-       puts(PROGNAME " (" PACKAGE_NAME ") " PACKAGE_VERSION);
-       puts("Copyright (C) 2011 Nick Bowler.");
-       puts("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.");
-       puts("This is free software: you are free to change and redistribute it.");
-       puts("There is NO WARRANTY, to the extent permitted by law.");
-}
-
 static void print_usage(FILE *f)
 {
        fprintf(f, "Usage: %s [options]\n", progname);
@@ -101,7 +92,7 @@ int main(int argc, char **argv)
                        count_str = optarg;
                        break;
                case 'V':
-                       print_version();
+                       test_print_version(PROGNAME);
                        return EXIT_SUCCESS;
                case 'H':
                        print_help();