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:
committed by
Bryce McKinlay
parent
e34a3d3120
commit
1457a0b52a
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user