From 55ce9c52a2a92950c252e8d5a34a3b018448df11 Mon Sep 17 00:00:00 2001 From: Ranjit Mathew Date: Fri, 30 Apr 2004 18:19:37 +0000 Subject: 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 From-SVN: r81358 --- libjava/testsuite/libjava.jni/PR15133.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libjava/testsuite/libjava.jni/PR15133.c (limited to 'libjava/testsuite/libjava.jni/PR15133.c') diff --git a/libjava/testsuite/libjava.jni/PR15133.c b/libjava/testsuite/libjava.jni/PR15133.c new file mode 100644 index 0000000..be5a48e --- /dev/null +++ b/libjava/testsuite/libjava.jni/PR15133.c @@ -0,0 +1,9 @@ +#include +#include +#include "PR15133.h" + +JNIEXPORT void JNICALL +Java_PR15133_printIt (JNIEnv *env, jobject x, jint y) +{ + printf ("%d\n", y); +} -- cgit v1.1