aboutsummaryrefslogtreecommitdiff
path: root/tests/include/test2.cpp
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.cpp
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.cpp')
-rw-r--r--tests/include/test2.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/include/test2.cpp b/tests/include/test2.cpp
new file mode 100644
index 0000000..4a40e90
--- /dev/null
+++ b/tests/include/test2.cpp
@@ -0,0 +1,8 @@
+#include "test2.hpp"
+
+// BUG: should complain
+// # include test2.h
+
+int test_call_int() {
+ return 5;
+}