aboutsummaryrefslogtreecommitdiff
path: root/tests/include/test.c
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-11-20 03:01:04 -0600
committerGanesh Viswanathan <dev@genotrance.com>2018-11-20 03:01:04 -0600
commit9787797d15d281ce1dd792d247fac043c72dc769 (patch)
tree6588ca41871c8dc8ed2782898f4b52605fae2f61 /tests/include/test.c
downloadnimterop-9787797d15d281ce1dd792d247fac043c72dc769.tar.gz
nimterop-9787797d15d281ce1dd792d247fac043c72dc769.zip
Initial version
Diffstat (limited to 'tests/include/test.c')
-rw-r--r--tests/include/test.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/include/test.c b/tests/include/test.c
new file mode 100644
index 0000000..8d801b7
--- /dev/null
+++ b/tests/include/test.c
@@ -0,0 +1,33 @@
+#include "test.h"
+
+int test_call_int() {
+ return 5;
+}
+
+struct STRUCT1 test_call_int_param(int param1) {
+ struct STRUCT1 s;
+
+ s.field1 = param1;
+
+ return s;
+}
+
+STRUCT2 test_call_int_param2(int param1, STRUCT2 param2) {
+ STRUCT2 s;
+
+ s.field1 = param1 + param2.field1;
+
+ return s;
+}
+
+STRUCT2 test_call_int_param3(int param1, struct STRUCT1 param2) {
+ STRUCT2 s;
+
+ s.field1 = param1 + param2.field1;
+
+ return s;
+}
+
+ENUM2 test_call_int_param4(enum ENUM param1) {
+ return enum4;
+} \ No newline at end of file