diff options
Diffstat (limited to 'tests/include')
| -rw-r--r-- | tests/include/test.h | 2 | ||||
| -rw-r--r-- | tests/include/test2.cpp | 5 | ||||
| -rw-r--r-- | tests/include/test2.hpp | 24 |
3 files changed, 30 insertions, 1 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 new file mode 100644 index 0000000..7039cde --- /dev/null +++ b/tests/include/test2.cpp @@ -0,0 +1,5 @@ +#include "test2.hpp" + +int test_call_int() { + return 5; +} diff --git a/tests/include/test2.hpp b/tests/include/test2.hpp new file mode 100644 index 0000000..0fd90ee --- /dev/null +++ b/tests/include/test2.hpp @@ -0,0 +1,24 @@ +#include <stdint.h> + +#define TEST_INT 512 +#define TEST_FLOAT 5.12 +#define TEST_HEX 0x512 + +int test_call_int(); + +struct Foo{ + int bar; +}; + +class Foo1{ + int bar1; +}; + +template<typename T> +struct Foo2{ + int bar2; +}; + +typedef Foo2<int> Foo2_int; + + |
