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

Failing testcase for scope of using declarations, bug 219424.

This commit is contained in:
Markus Schorn 2008-02-19 13:50:05 +00:00
parent 811e5057ad
commit c2d2098088

View file

@ -5721,4 +5721,23 @@ public class AST2CPPTests extends AST2BaseTest {
bh.assertNonProblem("relayIndex >", 10);
bh.assertNonProblem("numRelays )", 9);
}
// namespace ns {
// class cl {};
// void func(cl c);
// }
// using ns::cl;
// void test() {
// ns::cl qualified;
// cl unqualified;
// func(qualified);
// func(unqualified);
// }
public void _testScopeOfUsingDelegates_Bug219424() throws Exception {
BindingAssertionHelper bh= new BindingAssertionHelper(getContents(1)[0].toString(), true);
bh.assertNonProblem("cl c", 2);
bh.assertNonProblem("func(qualified)", 4);
bh.assertNonProblem("func(unqualified)", 4);
}
}