1 /* This file is part of a test for SF bug #231619.
2 It shows that the %import directive does not work properly in SWIG
3 1.3a5: Type information is not properly generated if a base class
4 comes from an %import-ed file.
6 Extra tests added for enums to test languages that have enum types.
12 #include "imports_b.h"
17 To import, you can use either
23 %import(module="imports_a") "imports_a.h"
26 In the first case, imports_a.i should declare the module name using
27 the %module directive.
29 In the second case, the file could be either a .h file, where no
30 %module directive will be found, or a swig interface file, where
31 the module option will take priority over any %module directive
32 inside the imported file.
40 // Test Warning 401 (Python only)
43 %import(module="imports_a") "imports_a.h"
47 %include "imports_b.h"