aboutsummaryrefslogtreecommitdiff
path: root/gdb/test4.c
diff options
context:
space:
mode:
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");
+}