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:
parent
a752179168
commit
1ba2a99987
1 changed files with 21 additions and 5 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue