summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/pr18278.c
blob: 7ca73a4306284f7a6c6bb308d49568adefe54d55 (plain)
1
2
3
4
5
6
7
8
9
10
#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;
}