mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 03:39:29 +08:00
cd06983639
PR libgcj/11951: * libjava.jni/pr11951.c: New file. * libjava.jni/pr11951.out: New file. * libjava.jni/pr11951.java: New file. From-SVN: r70543
17 lines
379 B
C
17 lines
379 B
C
#include <stdio.h>
|
|
#include <pr11951.h>
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_pr11951_nmethod (JNIEnv *env, jclass myclass)
|
|
{
|
|
jmethodID method;
|
|
jobject r;
|
|
|
|
method = (*env)->GetStaticMethodID (env, myclass, "dosomething",
|
|
"()Ljava/lang/Object;");
|
|
r = (*env)->CallStaticObjectMethod (env, myclass, method);
|
|
printf ("%d\n", r == NULL);
|
|
|
|
(*env)->ExceptionClear (env);
|
|
}
|