aboutsummaryrefslogtreecommitdiff
path: root/gdb/test4.c
diff options
context:
space:
mode:
authorgdb-2.8.1 <gdb@fsf.org>1988-12-16 00:00:00 +0000
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:31 +0100
commitbb7592f01006b09c846831a9fb9c306307ba34f6 (patch)
tree83e99233f937d7a06eee7c627543288feb125929 /gdb/test4.c
parent3bf57d210832b28e9361990830eb722a619f031b (diff)
downloadbinutils-bb7592f01006b09c846831a9fb9c306307ba34f6.zip
binutils-bb7592f01006b09c846831a9fb9c306307ba34f6.tar.gz
binutils-bb7592f01006b09c846831a9fb9c306307ba34f6.tar.bz2
gdb-2.8.1
Diffstat (limited to 'gdb/test4.c')
-rw-r--r--gdb/test4.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/gdb/test4.c b/gdb/test4.c
new file mode 100644
index 0000000..e465534
--- /dev/null
+++ b/gdb/test4.c
@@ -0,0 +1,40 @@
+main()
+{
+ int i,j,k;
+
+ i = 100;
+ j = 101;
+ k = foo(0,1,2,3,4,5,6,7,8);
+}
+
+int f3 (x)
+{
+ return x;
+}
+
+int f2 (x)
+{
+ return f3 (x+1);
+}
+
+int f1 (x)
+{
+ return f2 (x+1);
+}
+
+foo(a,b,c,d,e,f,g,h,i)
+ int a,b,c,d,e,f,g,h,i;
+{
+ int r;
+ r = a + b + c + d + e + f + g + h + i;
+ if (f1 (11))
+ return r;
+ else
+ return 0;
+}
+
+bar(ind)
+ int ind;
+{
+ printf("this is a test\n");
+}