summaryrefslogtreecommitdiff
path: root/tests/projects/other/native_module/modules/binary/bar/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/other/native_module/modules/binary/bar/src')
-rw-r--r--tests/projects/other/native_module/modules/binary/bar/src/add.cpp9
-rw-r--r--tests/projects/other/native_module/modules/binary/bar/src/main.cpp6
-rw-r--r--tests/projects/other/native_module/modules/binary/bar/src/sub.cpp10
3 files changed, 19 insertions, 6 deletions
diff --git a/tests/projects/other/native_module/modules/binary/bar/src/add.cpp b/tests/projects/other/native_module/modules/binary/bar/src/add.cpp
new file mode 100644
index 000000000..87ef97e6c
--- /dev/null
+++ b/tests/projects/other/native_module/modules/binary/bar/src/add.cpp
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char** argv) {
+ int a = atoi(argv[1]);
+ int b = atoi(argv[2]);
+ printf("%s\n", a + b);
+ return 0;
+}
diff --git a/tests/projects/other/native_module/modules/binary/bar/src/main.cpp b/tests/projects/other/native_module/modules/binary/bar/src/main.cpp
deleted file mode 100644
index 740142372..000000000
--- a/tests/projects/other/native_module/modules/binary/bar/src/main.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char** argv) {
- printf("%s %s\n", argv[1], argv[2]);
- return 0;
-}
diff --git a/tests/projects/other/native_module/modules/binary/bar/src/sub.cpp b/tests/projects/other/native_module/modules/binary/bar/src/sub.cpp
new file mode 100644
index 000000000..524930500
--- /dev/null
+++ b/tests/projects/other/native_module/modules/binary/bar/src/sub.cpp
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char** argv) {
+ int a = atoi(argv[1]);
+ int b = atoi(argv[2]);
+ printf("%s\n", a - b);
+ return 0;
+}
+