summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/EvaluationOrder.java
blob: 7c09bbb9cb9369435d18087b733433c953fa756c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class EvaluationOrder
 {
     private static int first (int x, int y)
     {
         return x;
     }

     public static void main (String[] args)
     {
         int l = args.length;

         /* This should print:
 0
 0
 1
         */
         System.out.println (l);
         System.out.println (first (l, ++l));
         System.out.println (l);
     }
 }