mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 01:35:39 +02:00
Test case for bug 271236.
This commit is contained in:
parent
73b5f18e29
commit
80a6ae7f57
1 changed files with 11 additions and 0 deletions
|
@ -7109,4 +7109,15 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
assertSame(col.getName(4).resolveBinding(), col.getName(11).resolveBinding());
|
assertSame(col.getName(4).resolveBinding(), col.getName(11).resolveBinding());
|
||||||
assertSame(col.getName(6).resolveBinding(), col.getName(12).resolveBinding());
|
assertSame(col.getName(6).resolveBinding(), col.getName(12).resolveBinding());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// namespace ns {
|
||||||
|
// struct A {};
|
||||||
|
// }
|
||||||
|
// using ns::A;
|
||||||
|
// struct A;
|
||||||
|
// A a;
|
||||||
|
public void _testForwardDeclarationAfterUsing_271236() throws Exception {
|
||||||
|
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
|
||||||
|
ba.assertNonProblem("A a;", 1, ICPPClassType.class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue