1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-12 10:45:37 +02:00

Test case for bug 263152.

This commit is contained in:
Sergey Prigogin 2009-01-31 23:37:32 +00:00
parent a752179168
commit 1ba2a99987

View file

@ -6590,4 +6590,20 @@ public class AST2CPPTests extends AST2BaseTest {
final String code= getAboveComment(); final String code= getAboveComment();
parseAndCheckBindings(code); parseAndCheckBindings(code);
} }
// struct A {};
// A a();
//
// struct B {
// void m(const A& x);
// void m(const B& x);
// };
//
// void test(B p) {
// p.m(a());
// }
public void _testBug263152() throws Exception {
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
ba.assertNonProblem("m(a())", 1, ICPPMethod.class);
}
} }