Initial commit

This commit is contained in:
Bassem Girgis
2018-12-20 17:34:07 -06:00
parent 7a2d899662
commit 81b4b9e273
34743 changed files with 5940233 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
This is a special directory for testcases that require inputs using subdirectories.
Each subdirectory should be named after the testcase. Any desired subdirectory
structure can be put under the testcase subdirectory.

View File

@@ -0,0 +1,12 @@
/* File : go_subdir_import_c.i */
%module go_subdir_import_c
%inline %{
class ObjC {
public:
virtual int getInt() const {
return 18;
}
};
%}

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"