Work around clang bugs with symbol resolution

This commit is contained in:
Marvin Greenberg 2014-01-30 16:18:21 -05:00
commit 9fd42e0e67
3 changed files with 129 additions and 1 deletions

View file

@ -3,12 +3,22 @@
%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
};
}
%}
%}