]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
For PR java/16675:
authorTom Tromey <tromey@redhat.com>
Thu, 2 Dec 2004 19:38:49 +0000 (19:38 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 2 Dec 2004 19:38:49 +0000 (19:38 +0000)
* testsuite/libjava.compile/PR16675.java: New file.

From-SVN: r91655

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

index c1b1a5b6e398b3d42b67f44da573949752c6234f..8ef9557b7385e880a2977f5c812d2cba27db9aa0 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-02  Tom Tromey  <tromey@redhat.com>
+
+       For PR java/16675:
+       * testsuite/libjava.compile/PR16675.java: New file.
+
 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
 
        * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
diff --git a/libjava/testsuite/libjava.compile/PR16675.java b/libjava/testsuite/libjava.compile/PR16675.java
new file mode 100644 (file)
index 0000000..11e6d4b
--- /dev/null
@@ -0,0 +1,13 @@
+public class PR16675 {
+    public PR16675(Object obj) { }
+
+    public void someTestMethod() {
+        // gcj crashed compiling this, as `null' had type `void*'.
+        new PR16675(null) { };
+    }
+
+    public void someTestMethod2() {
+        new PR16675((Object) null) { };
+    }
+
+}