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:
parent
811e5057ad
commit
c2d2098088
1 changed files with 19 additions and 0 deletions
|
@ -5721,4 +5721,23 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
bh.assertNonProblem("relayIndex >", 10);
|
bh.assertNonProblem("relayIndex >", 10);
|
||||||
bh.assertNonProblem("numRelays )", 9);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue