EvaluationOrder.java (EvaluationOrder): New.
2002-10-15 Andrew Haley <aph@redhat.com> * libjava.lang/EvaluationOrder.java (EvaluationOrder): New. * libjava.lang/EvaluationOrder.out (EvaluationOrder): New. From-SVN: r58176
This commit is contained in:
parent
b4258f0617
commit
f95eae39f8
@ -1,3 +1,8 @@
|
||||
2002-10-15 Andrew Haley <aph@redhat.com>
|
||||
|
||||
* libjava.lang/EvaluationOrder.java (EvaluationOrder): New.
|
||||
* libjava.lang/EvaluationOrder.out (EvaluationOrder): New.
|
||||
|
||||
2002-10-14 Andrew Haley <aph@redhat.com>
|
||||
|
||||
* libjava.lang/StaticConstructor.java: New.
|
||||
|
22
libjava/testsuite/libjava.lang/EvaluationOrder.java
Normal file
22
libjava/testsuite/libjava.lang/EvaluationOrder.java
Normal file
@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
|
3
libjava/testsuite/libjava.lang/EvaluationOrder.out
Normal file
3
libjava/testsuite/libjava.lang/EvaluationOrder.out
Normal file
@ -0,0 +1,3 @@
|
||||
0
|
||||
0
|
||||
1
|
Loading…
Reference in New Issue
Block a user