ae018d1aa1
* gdb.base/args.exp: Use args_test for tests. Add new tests which really test empty arguments. (args_load): Delete. (args_test): New.
13 lines
185 B
C
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 */
|
|
}
|