summaryrefslogtreecommitdiff
path: root/tests/projects/swig/java_c/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/swig/java_c/src')
-rw-r--r--tests/projects/swig/java_c/src/example.c4
-rw-r--r--tests/projects/swig/java_c/src/example.i5
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/projects/swig/java_c/src/example.c b/tests/projects/swig/java_c/src/example.c
new file mode 100644
index 000000000..06f76c542
--- /dev/null
+++ b/tests/projects/swig/java_c/src/example.c
@@ -0,0 +1,4 @@
+int fact(int n) {
+ return n;
+}
+
diff --git a/tests/projects/swig/java_c/src/example.i b/tests/projects/swig/java_c/src/example.i
new file mode 100644
index 000000000..e952f6123
--- /dev/null
+++ b/tests/projects/swig/java_c/src/example.i
@@ -0,0 +1,5 @@
+%module example
+%{
+extern int fact(int n);
+%}
+extern int fact(int n);