aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base/test126/Driver.java
blob: e855c5781baca5880beca9adf1fe512cb0e79e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public class Driver {
    public static void main(String[] args) { test(); }

    public static void test() {

        // local variable declaration in the init part of a for
        for (int i = 0, j = 0; j < 10 ; i++, j++) {
            j++;
        }
        int m, n, j = 0;

        // init part without local var declaration
        for (m  = 0, n = 0; j < 10 ; m++, n++) {
            j++;
            m++;
        }
    }
}