diff options
author | Tom Tromey <tromey@redhat.com> | 2005-12-06 02:30:11 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-12-06 02:30:11 +0000 |
commit | 45c76dbb43ff77f9d8fd89271033784a9bfbd4c5 (patch) | |
tree | a94ad68a1bc363fe0d5f65f9015afcd186f544ff /libjava/testsuite/libjava.compile/rh174912.java | |
parent | 409e35fadcd2c2ce1a20b2813edc0757e170e9ba (diff) | |
download | gcc-45c76dbb43ff77f9d8fd89271033784a9bfbd4c5.zip gcc-45c76dbb43ff77f9d8fd89271033784a9bfbd4c5.tar.gz gcc-45c76dbb43ff77f9d8fd89271033784a9bfbd4c5.tar.bz2 |
parse.y (patch_new_array_init): Don't set length on array.
gcc/java:
* parse.y (patch_new_array_init): Don't set length on array.
libjava:
* testsuite/libjava.compile/rh174912.java: New file.
From-SVN: r108099
Diffstat (limited to 'libjava/testsuite/libjava.compile/rh174912.java')
-rw-r--r-- | libjava/testsuite/libjava.compile/rh174912.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/rh174912.java b/libjava/testsuite/libjava.compile/rh174912.java new file mode 100644 index 0000000..65c1bf5 --- /dev/null +++ b/libjava/testsuite/libjava.compile/rh174912.java @@ -0,0 +1,17 @@ +// Derived from Red Hat bugzilla 174912 +// https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174912 +// The bug is that the anonymous class constructor here will end up +// with a bogus '[3C' in its signature. + +public class rh174912 { + public rh174912(char[][] args) { } + + public Object m() { + return new rh174912(new char[][] { "hi".toCharArray(), + "bob".toCharArray(), + "and joe".toCharArray() }) { + }; + } + + public static void main(String[] args) { } +} |