/tags/rel-1.3.35/Examples/test-suite/inctest.i
Swig | 35 lines | 28 code | 7 blank | 0 comment | 0 complexity | 9895c3bab3db0a0753cb1fe6d7e2f111 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module inctest
- //
- // This test fails if swig is not able to include
- // the following two files:
- //
- // 'testdir/subdir1/hello.i'
- // 'testdir/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/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;