1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

Test case for bug 271236.

This commit is contained in:
Sergey Prigogin 2009-04-05 20:44:12 +00:00
parent 73b5f18e29
commit 80a6ae7f57

View file

@ -7109,4 +7109,15 @@ public class AST2CPPTests extends AST2BaseTest {
assertSame(col.getName(4).resolveBinding(), col.getName(11).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);
}
}