add syntax cIncludeDir "$projpath/include"; do not use recursive search paths; add test tests/tnimterop_cpp.nim

This commit is contained in:
Timothee Cour 2018-11-27 18:06:17 -05:00
commit d00aeeafdd
6 changed files with 99 additions and 15 deletions

8
tests/include/test2.cpp Normal file
View file

@ -0,0 +1,8 @@
#include "test2.hpp"
// BUG: should complain
// # include test2.h
int test_call_int() {
return 5;
}

20
tests/include/test2.hpp Normal file
View file

@ -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;