source: trunk/gcc/libjava/testsuite/libjava.lang/EvaluationOrder.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 369 bytes
Line 
1public class EvaluationOrder
2 {
3 private static int first (int x, int y)
4 {
5 return x;
6 }
7
8 public static void main (String[] args)
9 {
10 int l = args.length;
11
12 /* This should print:
13 0
14 0
15 1
16 */
17 System.out.println (l);
18 System.out.println (first (l, ++l));
19 System.out.println (l);
20 }
21 }
22
Note: See TracBrowser for help on using the repository browser.