aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/args.c')
-rw-r--r--gdb/testsuite/gdb.base/args.c12
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 00000000000..d564120a607
--- /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;
+}