aboutsummaryrefslogtreecommitdiff
path: root/tests/include/test2.hpp
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-11-27 18:06:17 -0500
committerTimothee Cour <timothee.cour2@gmail.com>2018-11-27 18:28:14 -0500
commitd00aeeafdd54134ff294dc4459a6b8cbaa560f8d (patch)
tree5cdd3b1d174eab612618cafeff60486b704149cf /tests/include/test2.hpp
parentfb053dd81eca9a45a813a7d7b0de868c28203976 (diff)
downloadnimterop-d00aeeafdd54134ff294dc4459a6b8cbaa560f8d.tar.gz
nimterop-d00aeeafdd54134ff294dc4459a6b8cbaa560f8d.zip
add syntax cIncludeDir "$projpath/include"; do not use recursive search paths; add test tests/tnimterop_cpp.nim
Diffstat (limited to 'tests/include/test2.hpp')
-rw-r--r--tests/include/test2.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/include/test2.hpp b/tests/include/test2.hpp
new file mode 100644
index 0000000..1ba9a8d
--- /dev/null
+++ b/tests/include/test2.hpp
@@ -0,0 +1,20 @@
+#define TEST_INT 512
+
+int test_call_int();
+
+struct Foo{
+ int bar;
+};
+
+class Foo1{
+ int bar1;
+};
+
+template<typename T>
+struct Foo2{
+ int bar2;
+};
+
+typedef Foo2<int> Foo2_int;
+
+