add syntax cIncludeDir "$projpath/include"; do not use recursive search paths; add test tests/tnimterop_cpp.nim
This commit is contained in:
parent
fb053dd81e
commit
d00aeeafdd
6 changed files with 99 additions and 15 deletions
8
tests/include/test2.cpp
Normal file
8
tests/include/test2.cpp
Normal 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
20
tests/include/test2.hpp
Normal 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;
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue