gcc/libjava/testsuite/libjava.lang/PR6820.java
Bryce McKinlay 1457a0b52a 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
2002-05-27 06:47:40 +01:00

16 lines
226 B
Java

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);
}
}