summaryrefslogtreecommitdiff
path: root/test/files/jvm/natives.c
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-06-11 12:09:35 +0000
committermichelou <michelou@epfl.ch>2007-06-11 12:09:35 +0000
commitd2d5fb166c5c7294b0459732b3fa3815b8d82fda (patch)
tree04ed62066f0f8a45568f0f0b18762596a3ddd94e /test/files/jvm/natives.c
parent908decebd0f890068221ff586ebd7b3492f37c0f (diff)
downloadscala-d2d5fb166c5c7294b0459732b3fa3815b8d82fda.tar.gz
scala-d2d5fb166c5c7294b0459732b3fa3815b8d82fda.tar.bz2
scala-d2d5fb166c5c7294b0459732b3fa3815b8d82fda.zip
added test for @native attribute
Diffstat (limited to 'test/files/jvm/natives.c')
-rw-r--r--test/files/jvm/natives.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/jvm/natives.c b/test/files/jvm/natives.c
new file mode 100644
index 0000000000..7b6d7b5ba5
--- /dev/null
+++ b/test/files/jvm/natives.c
@@ -0,0 +1,8 @@
+#include "natives.h"
+
+JNIEXPORT jstring JNICALL Java_Test_00024_sayHello
+ (JNIEnv *env, jobject thisobject, jstring js)
+
+{
+ return js;
+}