From: Tom Tromey Date: Thu, 2 Dec 2004 19:38:49 +0000 (+0000) Subject: For PR java/16675: X-Git-Tag: releases/gcc-4.0.0~2450 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0396df8ac45acfbace58f00234eed18303387b7b;p=thirdparty%2Fgcc.git For PR java/16675: * testsuite/libjava.compile/PR16675.java: New file. From-SVN: r91655 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index c1b1a5b6e398..8ef9557b7385 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-12-02 Tom Tromey + + For PR java/16675: + * testsuite/libjava.compile/PR16675.java: New file. + 2004-12-02 Richard Sandiford * 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 000000000000..11e6d4bb6bc4 --- /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) { }; + } + +}