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:
parent
648ade1628
commit
0e9935bd07
1 changed files with 13 additions and 0 deletions
|
@ -6313,4 +6313,17 @@ public class AST2CPPTests extends AST2BaseTest {
|
|||
ba.assertNonProblem("RED;", 3, IEnumerator.class);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue