aboutsummaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-11-27 18:25:34 -0500
committerTimothee Cour <timothee.cour2@gmail.com>2018-11-27 18:28:14 -0500
commit6a4158dab4ee36214678a92a1e5605a00402f01c (patch)
tree09ac047308fe1b1c192bf6de8445a39cbbd6e9a4 /tests/include
parentd00aeeafdd54134ff294dc4459a6b8cbaa560f8d (diff)
downloadnimterop-6a4158dab4ee36214678a92a1e5605a00402f01c.tar.gz
nimterop-6a4158dab4ee36214678a92a1e5605a00402f01c.zip
fixup
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/test.h2
-rw-r--r--tests/include/test2.cpp3
-rw-r--r--tests/include/test2.hpp4
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/include/test.h b/tests/include/test.h
index 7de6eed..6138ca3 100644
--- a/tests/include/test.h
+++ b/tests/include/test.h
@@ -40,4 +40,4 @@ int test_call_int();
struct STRUCT1 _test_call_int_param_(int param1);
STRUCT2 test_call_int_param2(int param1, STRUCT2 param2);
STRUCT2 test_call_int_param3(int param1, struct STRUCT1 param2);
-ENUM2 test_call_int_param4(enum ENUM param1); \ No newline at end of file
+ENUM2 test_call_int_param4(enum ENUM param1);
diff --git a/tests/include/test2.cpp b/tests/include/test2.cpp
index 4a40e90..7039cde 100644
--- a/tests/include/test2.cpp
+++ b/tests/include/test2.cpp
@@ -1,8 +1,5 @@
#include "test2.hpp"
-// BUG: should complain
-// # include test2.h
-
int test_call_int() {
return 5;
}
diff --git a/tests/include/test2.hpp b/tests/include/test2.hpp
index 1ba9a8d..0fd90ee 100644
--- a/tests/include/test2.hpp
+++ b/tests/include/test2.hpp
@@ -1,4 +1,8 @@
+#include <stdint.h>
+
#define TEST_INT 512
+#define TEST_FLOAT 5.12
+#define TEST_HEX 0x512
int test_call_int();