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/testsuite/libjava.compile/PR16675.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR16675.java (limited to 'libjava/testsuite') 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