aboutsummaryrefslogtreecommitdiff
path: root/gdb/test4.c
blob: e46553446c590fcf1ff0984b77e66f4ed1fc0989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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");
}