binutils-gdb/gdb/testsuite/gdb.base/args.c
Daniel Jacobowitz ae018d1aa1 * gdb.base/args.c (main): Add breakpoint marker.
* gdb.base/args.exp: Use args_test for tests.  Add new tests which
	really test empty arguments.
	(args_load): Delete.
	(args_test): New.
2006-09-15 20:06:42 +00:00

13 lines
185 B
C

#include <stdio.h>
int
main (int argc, char **argv)
{
int i = 0;
printf ("%d\n", argc);
while (i < argc)
printf ("%s\n", argv[i++]);
return 0; /* set breakpoint here */
}