Commit 1457a0b5 by Bryce McKinlay Committed by Bryce McKinlay

re PR java/6820 (miscompilation of (a,++a) as arguments to final method)

	* libjava.lang/PR6820.java: New file.
	* libjava.lang/PR6820.out: New file.

From-SVN: r53908
parent e34a3d31
2002-05-27 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* libjava.lang/PR6820.java: New file.
* libjava.lang/PR6820.out: New file.
2002-05-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* libjava.lang/PR6729.java: New file.
......
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);
}
}
a=10 b=11
a=10 b=11
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment