1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-12 02:35: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

@ -6576,11 +6576,11 @@ public class AST2CPPTests extends AST2BaseTest {
final String code= getAboveComment(); final String code= getAboveComment();
parseAndCheckBindings(code); parseAndCheckBindings(code);
} }
// enum E {e1}; // enum E {e1};
// typedef int TInt; // typedef int TInt;
// void select(int); // void select(int);
// void test() { // void test() {
// int a= TInt(1); // int a= TInt(1);
// E e= E(0); // E e= E(0);
// void* h; // void* h;
@ -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);
}
} }