test added for nested unnamed C struct %extend

This commit is contained in:
Vladimir Kalinin 2014-05-14 00:56:39 +04:00
commit 5d78f14b1c
2 changed files with 15 additions and 2 deletions

View file

@ -378,8 +378,6 @@ void Swig_nested_name_unnamed_c_structs(Node *n) {
decl = nextSibling(decl);
}
Delete(ty);
// Check for extensions
// TODO: we can save extensions hash like class hash and move check_extensions() after nesting processing
if (extendhash) {
if (Node *am = Getattr(extendhash, name)) {
// Merge the extension into the symbol table