For PR java/14853:
authorTom Tromey <tromey@redhat.com>
Mon, 6 Dec 2004 15:30:57 +0000 (15:30 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 6 Dec 2004 15:30:57 +0000 (15:30 +0000)
* testsuite/libjava.compile/PR14853.java: New file.
* testsuite/libjava.compile/PR14853.xfail: New file.

From-SVN: r91777

libjava/ChangeLog
libjava/testsuite/libjava.compile/PR14853.java [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR14853.xfail [new file with mode: 0644]

index 55cfaa8c05103afdc112cf7d89869d1d7f1bb275..be871a21fab9ede71995a9072342815cdf88e197 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-06  Tom Tromey  <tromey@redhat.com>
+
+       For PR java/14853:
+       * testsuite/libjava.compile/PR14853.java: New file.
+       * testsuite/libjava.compile/PR14853.xfail: New file.
+
 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
 
        PR libgcj/7305
diff --git a/libjava/testsuite/libjava.compile/PR14853.java b/libjava/testsuite/libjava.compile/PR14853.java
new file mode 100644 (file)
index 0000000..a800c52
--- /dev/null
@@ -0,0 +1,17 @@
+class tt
+{
+  static final tt tt1 = new tt();
+  tt()
+  {
+  }
+}
+
+public class PR14853
+{
+  public static void main (String[] args)
+  {
+    // This is an invalid assignment.  gcj would get confused in
+    // definite assignment when compiling to object code.
+    tt.tt1 = new tt();
+  }
+}
diff --git a/libjava/testsuite/libjava.compile/PR14853.xfail b/libjava/testsuite/libjava.compile/PR14853.xfail
new file mode 100644 (file)
index 0000000..e3b083b
--- /dev/null
@@ -0,0 +1 @@
+shouldfail