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