diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-02 19:38:49 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-02 19:38:49 +0000 |
commit | fe8c62be71ad7276b03bb2f7212f7f6eb996fcf3 (patch) | |
tree | 564bf4ad00a6042e0689a6ce73f8454971fc0e03 /libjava | |
parent | 23e9e85fbdfcde6960b1c5b23a7d8fba201b5a31 (diff) | |
download | ppe42-gcc-fe8c62be71ad7276b03bb2f7212f7f6eb996fcf3.tar.gz ppe42-gcc-fe8c62be71ad7276b03bb2f7212f7f6eb996fcf3.zip |
For PR java/16675:
* testsuite/libjava.compile/PR16675.java: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91655 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/PR16675.java | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index c1b1a5b6e39..8ef9557b738 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 00000000000..11e6d4bb6bc --- /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) { }; + } + +} |