swig/Examples/test-suite/nested_scope.i
2014-01-30 16:18:21 -05:00

24 lines
309 B
OpenEdge ABL

%module nested_scope
%inline %{
namespace ns {
struct Global {
#ifdef __clang__
struct Outer {
struct Nested;
struct Nested {
int data;
};
};
struct Outer::Nested instance;
#else
struct Outer {
struct Nested;
};
struct Outer::Nested {
int data;
} instance;
#endif
};
}
%}