1
0
Fork 0
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:
Sergey Prigogin 2009-02-01 01:35:28 +00:00
parent e3ce00a49d
commit 87a19bbe37

View file

@ -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);
}
}