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