OSDN Git Service

* libjava.compile/T20020604.java: New file.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Jun 2002 19:39:02 +0000 (19:39 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Jun 2002 19:39:02 +0000 (19:39 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54259 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.compile/PR1343.java [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR5913.xfail [deleted file]
libjava/testsuite/libjava.compile/T20020604.java [new file with mode: 0644]
libjava/testsuite/libjava.mauve/xfails

index 3356fea..87ca19c 100644 (file)
@@ -1,3 +1,16 @@
+2002-06-04  Tom Tromey  <tromey@redhat.com>
+
+       * 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.
+
 2002-05-29  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
        * libjava.compile/T20020529.java: New file.
 2002-05-29  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
        * libjava.compile/T20020529.java: New file.
diff --git a/libjava/testsuite/libjava.compile/PR1343.java b/libjava/testsuite/libjava.compile/PR1343.java
new file mode 100644 (file)
index 0000000..be35925
--- /dev/null
@@ -0,0 +1,17 @@
+import java.util.Vector;
+
+public class PR1343
+{
+    void f(Object[] l)
+    {
+        class x1
+        {
+        };
+    }
+    void f(Vector l)
+    {
+        class x1
+        {
+        };
+    }
+}
diff --git a/libjava/testsuite/libjava.compile/PR5913.xfail b/libjava/testsuite/libjava.compile/PR5913.xfail
deleted file mode 100644 (file)
index a61ff5b..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-xfail-gcj
-xfail-gcjC
diff --git a/libjava/testsuite/libjava.compile/T20020604.java b/libjava/testsuite/libjava.compile/T20020604.java
new file mode 100644 (file)
index 0000000..fba68c2
--- /dev/null
@@ -0,0 +1,17 @@
+// 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;
+  }
+}
index eff94d6..1594a3b 100644 (file)
@@ -39,7 +39,6 @@ FAIL: gnu.testlet.java.lang.Double.DoubleTest: Error: test_longValue returned wr
 FAIL: gnu.testlet.java.lang.Float.FloatTest: Error: test_intValue returned wrong results - 1 (number 1)
 FAIL: gnu.testlet.java.lang.String.CASE_INSENSITIVE_ORDER: unicode mappings (number 1)
 FAIL: gnu.testlet.java.lang.String.CASE_INSENSITIVE_ORDER: unicode mappings (number 2)
 FAIL: gnu.testlet.java.lang.Float.FloatTest: Error: test_intValue returned wrong results - 1 (number 1)
 FAIL: gnu.testlet.java.lang.String.CASE_INSENSITIVE_ORDER: unicode mappings (number 1)
 FAIL: gnu.testlet.java.lang.String.CASE_INSENSITIVE_ORDER: unicode mappings (number 2)
-FAIL: gnu.testlet.java.lang.System.getProperty: '' (number 1)
 FAIL: gnu.testlet.java.text.AttributedString.Test: Attribute key count (number 1)
 FAIL: gnu.testlet.java.text.DateFormatSymbols.Test: patterns (number 2)
 FAIL: gnu.testlet.java.text.SimpleDateFormat.Test: equals() (number 1)
 FAIL: gnu.testlet.java.text.AttributedString.Test: Attribute key count (number 1)
 FAIL: gnu.testlet.java.text.DateFormatSymbols.Test: patterns (number 2)
 FAIL: gnu.testlet.java.text.SimpleDateFormat.Test: equals() (number 1)