summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/overload.c
blob: 4e7a2d9289b9eadc615774da64d9f8dae5100ca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <overload.h>

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


JNIEXPORT jint JNICALL
Java_overload_over__II (JNIEnv *env, jclass klass, jint one, jint two)
{
  return one + two;
}