1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Name resolution with nested linkage specifications, bug 183126.

This commit is contained in:
Markus Schorn 2007-11-28 09:02:16 +00:00
parent d658efa830
commit f3dc14467c
2 changed files with 14 additions and 0 deletions

View file

@ -4155,4 +4155,17 @@ public class AST2Tests extends AST2BaseTest {
assertField(col.getName(33).resolveBinding(), "x", "S2");
assertField(col.getName(34).resolveBinding(), "x", "S2");
}
// extern "C" {
// extern "C" {
// void externFunc();
// }
// }
// void test() {
// externFunc();
// }
public void testBug183126_nestedLinkageSpecs() throws Exception {
StringBuffer buffer = getContents(1)[0];
parseAndCheckBindings(buffer.toString(), ParserLanguage.CPP);
}
}

View file

@ -1497,6 +1497,7 @@ public class CPPSemantics {
nodes = ((ICPPASTLinkageSpecification)item).getDeclarations();
idx = 0;
item = nodes[idx];
continue;
}
}