From 0396df8ac45acfbace58f00234eed18303387b7b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 2 Dec 2004 19:38:49 +0000 Subject: For PR java/16675: * testsuite/libjava.compile/PR16675.java: New file. From-SVN: r91655 --- libjava/ChangeLog | 5 +++++ libjava/testsuite/libjava.compile/PR16675.java | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR16675.java 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 + + 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 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) { }; + } + +} -- cgit v1.1