1 // Regression test for gcj crash, when compiled with -O2 on 2 // i686-pc-linux-gnu. 3 public class T20020604 4 { 5 static double d2 = 0.0; 6 7 static Object lockObject = new Object(); 8 f(double d1)9 public static double f(double d1) { 10 11 synchronized (lockObject){ 12 d2 = Math.max(d1, d2); 13 } 14 15 return d2; 16 } 17 } 18