import source from 1.3.40
[external/swig.git] / Examples / test-suite / inctest.i
1 %module inctest
2
3  //
4  // This test fails if swig is not able to include
5  // the following two files:
6  //
7  //   'testdir/subdir1/hello.i'
8  //   'testdir/subdir2/hello.i'
9  //
10  // since they have the same basename 'hello', swig is only
11  // including one. This is not right, it must include both,
12  // as the well known compilers do.
13  //
14  // Also repeats the test for the import directive in subdirectories
15
16 %include "testdir/test.i"
17
18
19 // Bug #1162194
20 %inline %{
21 typedef struct {
22 #include "inctest.h"
23 } MY_TYPES;
24
25 %}
26
27 %{
28 typedef struct {
29 #include "inctest.h"
30 } MY_THINGS;
31 %}
32
33 typedef struct {
34 %include "inctest.h"
35 } MY_THINGS;