xref: /csrg-svn/old/dbx/tests/cc/gprof.c (revision 44073)
1*44073Sbostic /*
2*44073Sbostic  * Test of debugging arrays in C.
3*44073Sbostic  */
4*44073Sbostic 
5*44073Sbostic int a[10], *b;
6*44073Sbostic 
p(i,a,j)7*44073Sbostic p (i, a, j)
8*44073Sbostic int i, a[], j;
9*44073Sbostic {
10*44073Sbostic     a[3] = i;
11*44073Sbostic     a[4] = j;
12*44073Sbostic }
13*44073Sbostic 
main()14*44073Sbostic main ()
15*44073Sbostic {
16*44073Sbostic     int i;
17*44073Sbostic 
18*44073Sbostic     b = a;
19*44073Sbostic     for (i = 0; i < 10; i++) {
20*44073Sbostic 	a[i] = i;
21*44073Sbostic     }
22*44073Sbostic     p(4, a, 5);
23*44073Sbostic }
24