summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.gdbtk/simple.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-03 20:54:43 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-03 20:54:43 +0000
commit1684382a9110efd6523ce304cb99c869053323c8 (patch)
tree40364f6d12e4c278425f9de47c2f4e15c98e8076 /gdb/testsuite/gdb.gdbtk/simple.c
parent2729fb2483899a9b69e0d73500c79373156f27a7 (diff)
downloadgdb-cvs/cagney_writestrings-20030508-branch.tar.gz
Diffstat (limited to 'gdb/testsuite/gdb.gdbtk/simple.c')
-rw-r--r--gdb/testsuite/gdb.gdbtk/simple.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gdb/testsuite/gdb.gdbtk/simple.c b/gdb/testsuite/gdb.gdbtk/simple.c
deleted file mode 100644
index 969f6880636..00000000000
--- a/gdb/testsuite/gdb.gdbtk/simple.c
+++ /dev/null
@@ -1,20 +0,0 @@
-int
-main(int argc, char * argv[])
-{
- int i;
- char *a;
- char *b = "abc";
- long foo;
-
- a = (char *) malloc (300);
-
- for (i=0; i < 50; i++)
- {
- int j = i % 3;
- int k = 3 - j;
- strncpy (&a[i], &b[k], j);
- foo = (long) j * k / i + 2 * k * k * k;
- }
- return 0;
-}
-