aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/testsuite/libjava.compile/PR16675.java13
2 files changed, 18 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index c1b1a5b..8ef9557 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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
index 0000000..11e6d4b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR16675.java
@@ -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) { };
+ }
+
+}