diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2003-01-14 21:03:44 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2003-01-14 21:03:44 +0000 |
commit | 8f9ab80108ec9e2cfbdf6908f30f55772d8e7a8f (patch) | |
tree | 508ffa0d2a4347a25c4e20ec6b8bf3cf574c01f9 /gdb/testsuite/gdb.base/args.c | |
parent | a04257e6abb5136d1c3f965e05e91f7e27629387 (diff) | |
download | gdb-8f9ab80108ec9e2cfbdf6908f30f55772d8e7a8f.zip gdb-8f9ab80108ec9e2cfbdf6908f30f55772d8e7a8f.tar.gz gdb-8f9ab80108ec9e2cfbdf6908f30f55772d8e7a8f.tar.bz2 |
2003-01-14 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/args.c: New file.
* gdb.base/args.exp: New file.
Diffstat (limited to 'gdb/testsuite/gdb.base/args.c')
-rw-r--r-- | gdb/testsuite/gdb.base/args.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/args.c b/gdb/testsuite/gdb.base/args.c new file mode 100644 index 0000000..d564120 --- /dev/null +++ b/gdb/testsuite/gdb.base/args.c @@ -0,0 +1,12 @@ +#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; +} |