summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/PR6820.java
blob: c505eb2f0a52debe9c54bd84fc009e9b4fe2a217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public class PR6820
{
  static void m(int a, int b) {
    System.out.println("a="+a+" b="+b);
  }

  static int a = 10;

  public static void main(String[] args) {
    int b = 10;
    m(a,++a);
    m(b,++b);
  }
}