gcc/libjava/testsuite/libjava.jni/PR28178.c
Tom Tromey 10caa6ef96 re PR libgcj/28178 (jniEnv->DeleteLocalRef (null) fails)
PR libgcj/28178:
	* jni.cc (_Jv_JNI_DeleteLocalRef): Ignore null argument.
	(_Jv_JNI_DeleteGlobalRef): Likewise.
	* testsuite/libjava.jni/PR28178.java: New file.
	* testsuite/libjava.jni/PR28178.c: New file.
	* testsuite/libjava.jni/PR28178.out: New file.

From-SVN: r115034
2006-06-27 15:33:24 +00:00

11 lines
152 B
C

#include <PR28178.h>
void
Java_PR28178_m (JNIEnv *env, jclass ignore)
{
(*env)->DeleteLocalRef(env, NULL);
(*env)->DeleteGlobalRef(env, NULL);
}