summaryrefslogtreecommitdiffstats
path: root/test cases/java/9 jni/lib/native.c
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/java/9 jni/lib/native.c')
-rw-r--r--test cases/java/9 jni/lib/native.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/java/9 jni/lib/native.c b/test cases/java/9 jni/lib/native.c
new file mode 100644
index 0000000..0b5e718
--- /dev/null
+++ b/test cases/java/9 jni/lib/native.c
@@ -0,0 +1,11 @@
+#include <jni.h>
+
+JNIEXPORT jint JNICALL
+JNI_OnLoad(JavaVM *vm, void *reserved)
+{
+ return JNI_VERSION_1_8;
+}
+
+JNIEXPORT void JNICALL
+JNI_OnUnload(JavaVM *vm, void *reserved)
+{}