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:
parent
d658efa830
commit
f3dc14467c
2 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -1497,6 +1497,7 @@ public class CPPSemantics {
|
|||
nodes = ((ICPPASTLinkageSpecification)item).getDeclarations();
|
||||
idx = 0;
|
||||
item = nodes[idx];
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue