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
This commit is contained in:
Bryce McKinlay 2002-05-27 05:47:40 +00:00 committed by Bryce McKinlay
parent e34a3d3120
commit 1457a0b52a
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -0,0 +1,15 @@
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);
}
}

View File

@ -0,0 +1,2 @@
a=10 b=11
a=10 b=11