gcc/libjava/testsuite/libjava.jni/PR15133.c
Ranjit Mathew 55ce9c52a2 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
2004-04-30 18:19:37 +00:00

10 lines
161 B
C

#include <stdio.h>
#include <jni.h>
#include "PR15133.h"
JNIEXPORT void JNICALL
Java_PR15133_printIt (JNIEnv *env, jobject x, jint y)
{
printf ("%d\n", y);
}