moved testdir/* to testdir/inctest/* under Examples/test-suite/

This commit is contained in:
Paweł Tomulik 2013-01-13 23:14:46 +01:00
commit 0afbb357d0
9 changed files with 8 additions and 8 deletions

View file

@ -0,0 +1,24 @@
#ifndef subdir1_hello_i_
#define subdir1_hello_i_
%{
typedef int Integer;
%}
%inline %{
struct A
{
int aa;
};
Integer importtest1(Integer i) {
return i + 10;
}
%}
#endif //subdir1_hello_i_

View file

@ -0,0 +1,6 @@
#ifndef subdir1_imports_i_
#define subdir1_imports_i_
typedef int Integer;
#endif //subdir1_imports_i_

View file

@ -0,0 +1,5 @@
// %include twice to check include header guards
%include "hello.i"
%include "hello.i"
%import "imports.i"
%import "imports.i"

View file

@ -0,0 +1,24 @@
#ifndef subdir2_hello_i_
#define subdir2_hello_i_
%{
typedef char * TypedefString;
%}
%inline %{
struct B
{
int bb;
};
TypedefString importtest2(TypedefString str) {
strcpy(str, "white");
return str;
}
%}
#endif //subdir2_hello_i_

View file

@ -0,0 +1,6 @@
#ifndef subdir2_imports_i_
#define subdir2_imports_i_
typedef char * TypedefString;
#endif //subdir2_imports_i_

View file

@ -0,0 +1,3 @@
%include "hello.i"
%import "imports.i"

View file

@ -0,0 +1,4 @@
%include "subdir1/subinc1.i"
%include "subdir2/subinc2.i"