mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 12:23:59 +08:00
f95eae39f8
2002-10-15 Andrew Haley <aph@redhat.com> * libjava.lang/EvaluationOrder.java (EvaluationOrder): New. * libjava.lang/EvaluationOrder.out (EvaluationOrder): New. From-SVN: r58176
23 lines
369 B
Java
23 lines
369 B
Java
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);
|
|
}
|
|
}
|
|
|