From: tromey Date: Wed, 17 Sep 2003 15:25:07 +0000 (+0000) Subject: 2003-09-17 Ranjit Mathew X-Git-Tag: upstream/4.9.2~76714 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bf54fc19b76f15d636c4315cc45db3288fbc7f5;p=platform%2Fupstream%2Flinaro-gcc.git 2003-09-17 Ranjit Mathew PR java/9577 * libjava.cni/PR9577.java: New file. * libjava.cni/natPR9577.cc: New file. * libjava.cni/PR9577.out: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71460 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index bfb3fa4..58226a1 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2003-09-17 Ranjit Mathew + + PR java/9577 + * libjava.cni/PR9577.java: New file. + * libjava.cni/natPR9577.cc: New file. + * libjava.cni/PR9577.out: New file. + 2003-09-04 Jeff Sturm * libjava.compile/compile.exp: Test with -O3 rather than -O. diff --git a/libjava/testsuite/libjava.cni/PR9577.java b/libjava/testsuite/libjava.cni/PR9577.java new file mode 100644 index 0000000..2697392 --- /dev/null +++ b/libjava/testsuite/libjava.cni/PR9577.java @@ -0,0 +1,14 @@ +// Check if a method name is mangled properly in the presence +// of an array parameter sharing a part of the type name +// with a subsequent parameter. + +public class PR9577 +{ + private native void sayHello (String[] s, Object o); + + public static void main (String[] args) + { + PR9577 x = new PR9577( ); + x.sayHello( null, null); + } +} diff --git a/libjava/testsuite/libjava.cni/PR9577.out b/libjava/testsuite/libjava.cni/PR9577.out new file mode 100644 index 0000000..10ddd6d --- /dev/null +++ b/libjava/testsuite/libjava.cni/PR9577.out @@ -0,0 +1 @@ +Hello! diff --git a/libjava/testsuite/libjava.cni/natPR9577.cc b/libjava/testsuite/libjava.cni/natPR9577.cc new file mode 100644 index 0000000..90fafee --- /dev/null +++ b/libjava/testsuite/libjava.cni/natPR9577.cc @@ -0,0 +1,9 @@ +#include + +#include "PR9577.h" + +void +PR9577::sayHello (JArray< ::java::lang::String *> *x, ::java::lang::Object *y) + { + printf( "Hello!\n"); + }