Retro68/gcc/libjava/testsuite/libjava.jni/pr18278.c
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

11 lines
196 B
C

#include <jni.h>
#include <stdio.h>
#include "pr18278.h"
jobject Java_pr18278_weakRef(JNIEnv *env, jclass cls, jobject data)
{
jobject r = (* env)->NewWeakGlobalRef(env, data);
return r;
}