xref: /csrg-svn/old/dbx/tests/cc/dump.c (revision 44065)
1*44065Sbostic /*
2*44065Sbostic  * Test of nested blocks.
3*44065Sbostic  */
4*44065Sbostic 
5*44065Sbostic int i;
6*44065Sbostic 
main()7*44065Sbostic main ()
8*44065Sbostic {
9*44065Sbostic     i = 3;
10*44065Sbostic     sub();
11*44065Sbostic }
12*44065Sbostic 
sub()13*44065Sbostic sub ()
14*44065Sbostic {
15*44065Sbostic     int i, j;
16*44065Sbostic 
17*44065Sbostic     for (i = 1; i <= 10; i++) {
18*44065Sbostic 	int j;
19*44065Sbostic 
20*44065Sbostic 	j = j + i;
21*44065Sbostic     }
22*44065Sbostic     j = 0;
23*44065Sbostic     for (i = 11; i <= 20; i++) {
24*44065Sbostic 	j = j + i;
25*44065Sbostic     }
26*44065Sbostic }
27*44065Sbostic 
after()28*44065Sbostic after ()
29*44065Sbostic {
30*44065Sbostic     int a;
31*44065Sbostic 
32*44065Sbostic     a = 3;
33*44065Sbostic }
34