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

Test case for bug 259680.

This commit is contained in:
Sergey Prigogin 2008-12-25 23:34:19 +00:00
parent 648ade1628
commit 0e9935bd07

View file

@ -6313,4 +6313,17 @@ public class AST2CPPTests extends AST2BaseTest {
ba.assertNonProblem("RED;", 3, IEnumerator.class); ba.assertNonProblem("RED;", 3, IEnumerator.class);
ba.assertProblem("GREEN;", 5); ba.assertProblem("GREEN;", 5);
} }
// struct A {
// int operator*() { return 0; }
// };
// void func(int p) {}
//
// void test(A& a) {
// func(*a);
// }
public void _testSmartPointerReference_259680() throws Exception {
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
ba.assertNonProblem("func(*a)", 4, ICPPFunction.class);
}
} }