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/testsuite/libjava.compile | |
parent | 23e9e85fbdfcde6960b1c5b23a7d8fba201b5a31 (diff) | |
download | gcc-fe8c62be71ad7276b03bb2f7212f7f6eb996fcf3.tar.gz |
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/testsuite/libjava.compile')
-rw-r--r-- | libjava/testsuite/libjava.compile/PR16675.java | 13 |
1 files changed, 13 insertions, 0 deletions
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) { }; + } + +} |