aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/PR15133.java
diff options
context:
space:
mode:
authorRanjit Mathew <rmathew@hotmail.com>2004-04-30 18:19:37 +0000
committerRanjit Mathew <rmathew@gcc.gnu.org>2004-04-30 18:19:37 +0000
commit55ce9c52a2a92950c252e8d5a34a3b018448df11 (patch)
tree6b89dbbf7c15425987ef61a507b3be356eb69537 /libjava/testsuite/libjava.jni/PR15133.java
parent3fb577a58935b9b1be60200000422ead1a69f561 (diff)
downloadgcc-55ce9c52a2a92950c252e8d5a34a3b018448df11.zip
gcc-55ce9c52a2a92950c252e8d5a34a3b018448df11.tar.gz
gcc-55ce9c52a2a92950c252e8d5a34a3b018448df11.tar.bz2
re PR java/15133 (gcjh generates wrong method signatures)
* testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use additional option "-Wmissing-prototypes" for compiling C sources. Print actual filename for pass/fail rather than $name.c. * testsuite/libjava.jni/PR15133.java: New testcase file. * testsuite/libjava.jni/PR15133.c: Likewise. * testsuite/libjava.jni/PR15133.out: Likewise. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r81358
Diffstat (limited to 'libjava/testsuite/libjava.jni/PR15133.java')
-rw-r--r--libjava/testsuite/libjava.jni/PR15133.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.jni/PR15133.java b/libjava/testsuite/libjava.jni/PR15133.java
new file mode 100644
index 0000000..9043576
--- /dev/null
+++ b/libjava/testsuite/libjava.jni/PR15133.java
@@ -0,0 +1,14 @@
+/* Test case for PR java/15133 */
+public class PR15133
+{
+ public void printIt (String dummy) { }
+
+ public native void printIt (int num);
+
+ public static void main (String[] args)
+ {
+ System.loadLibrary ("PR15133");
+
+ new PR15133( ).printIt( 1729);
+ }
+}