summaryrefslogtreecommitdiff
path: root/test/178-app-image-native-method/native_methods.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/178-app-image-native-method/native_methods.cc')
-rw-r--r--test/178-app-image-native-method/native_methods.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/178-app-image-native-method/native_methods.cc b/test/178-app-image-native-method/native_methods.cc
index 5c4fb3ee82..794a78a3c1 100644
--- a/test/178-app-image-native-method/native_methods.cc
+++ b/test/178-app-image-native-method/native_methods.cc
@@ -38,6 +38,10 @@ static inline bool VerifyManyParameters(
(i8 == 81) && (l8 == 82) && (f8 == 83.0) && (d8 == 84.0);
}
+extern "C" JNIEXPORT jint JNICALL Java_Test_nativeMethodVoid(JNIEnv*, jclass) {
+ return 42;
+}
+
extern "C" JNIEXPORT jint JNICALL Java_Test_nativeMethod(JNIEnv*, jclass, jint i) {
return i;
}
@@ -64,6 +68,10 @@ extern "C" JNIEXPORT jint JNICALL Java_Test_nativeMethodWithManyParameters(
return ok ? 42 : -1;
}
+extern "C" JNIEXPORT jint JNICALL Java_TestFast_nativeMethodVoid(JNIEnv*, jclass) {
+ return 42;
+}
+
extern "C" JNIEXPORT jint JNICALL Java_TestFast_nativeMethod(JNIEnv*, jclass, jint i) {
return i;
}
@@ -90,6 +98,10 @@ extern "C" JNIEXPORT jint JNICALL Java_TestFast_nativeMethodWithManyParameters(
return ok ? 42 : -1;
}
+extern "C" JNIEXPORT jint JNICALL Java_TestCritical_nativeMethodVoid() {
+ return 42;
+}
+
extern "C" JNIEXPORT jint JNICALL Java_TestCritical_nativeMethod(jint i) {
return i;
}