mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Test case for bug 263158.
This commit is contained in:
parent
e3ce00a49d
commit
87a19bbe37
1 changed files with 14 additions and 1 deletions
|
@ -6433,7 +6433,7 @@ public class AST2CPPTests extends AST2BaseTest {
|
|||
ITypedef s2= (ITypedef) ((IPointerType) d.getType()).getType();
|
||||
assertInstance(((IFunctionType) s2.getType()).getParameterTypes()[0], IBasicType.class);
|
||||
}
|
||||
|
||||
|
||||
// namespace A {
|
||||
// class X {
|
||||
// friend void f(int);
|
||||
|
@ -6617,4 +6617,17 @@ public class AST2CPPTests extends AST2BaseTest {
|
|||
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
|
||||
ba.assertProblem("a =", 1);
|
||||
}
|
||||
|
||||
// struct A {};
|
||||
//
|
||||
// void foo() {
|
||||
// while (
|
||||
// A* a = 0
|
||||
// );
|
||||
// }
|
||||
public void _testAmbiguityResolutionInCondition_263158() throws Exception {
|
||||
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
|
||||
ba.assertNonProblem("A*", 1, ICPPClassType.class);
|
||||
ba.assertNonProblem("a", 1, ICPPVariable.class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue