summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/simple_int.c
blob: a7c64b0cd5f8a02f6f37f36c25eb348be95cc3bd (plain)
1
2
3
4
5
6
7
#include <simple_int.h>

JNIEXPORT jint JNICALL
Java_simple_1int_nat (JNIEnv *env, jclass klass, jint val)
{
  return 2 * val;
}