From fe8c62be71ad7276b03bb2f7212f7f6eb996fcf3 Mon Sep 17 00:00:00 2001 From: tromey Date: Thu, 2 Dec 2004 19:38:49 +0000 Subject: 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 --- 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/libjava.compile/PR16675.java') 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) { }; + } + +} -- cgit v1.2.3