gcc/libjava/testsuite/libjava.compile/T20020604.java
Tom Tromey d6ee617dd7 re PR libgcj/6389 (System.getProperty("") should always throw an IllegalArgumentException)
* libjava.compile/T20020604.java: New file.

	For PR libgcj/6389:
	* libjava.mauve/xfails: Now passes System.getProperty test.

	For PR java/1343 and PR java/6336:
	* libjava.compile/PR1343.java: New file.

	For PR java/5913:
	* libjava.compile/PR5913.xfail: Removed.

From-SVN: r54259
2002-06-04 19:39:02 +00:00

18 lines
305 B
Java

// Regression test for gcj crash, when compiled with -O2 on
// i686-pc-linux-gnu.
public class T20020604
{
static double d2 = 0.0;
static Object lockObject = new Object();
public static double f(double d1) {
synchronized (lockObject){
d2 = Math.max(d1, d2);
}
return d2;
}
}