Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/inctest.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

36 lines
646 B
OpenEdge ABL

%module inctest
//
// This test fails if swig is not able to include
// the following two files:
//
// 'testdir/inctest/subdir1/hello.i'
// 'testdir/inctest/subdir2/hello.i'
//
// since they have the same basename 'hello', swig is only
// including one. This is not right, it must include both,
// as the well known compilers do.
//
// Also repeats the test for the import directive in subdirectories
%include "testdir/inctest/test.i"
// Bug #1162194
%inline %{
typedef struct {
#include "inctest.h"
} MY_TYPES;
%}
%{
typedef struct {
#include "inctest.h"
} MY_THINGS;
%}
typedef struct {
%include "inctest.h"
} MY_THINGS;