mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +02:00
Removed use of deprecated methods.
This commit is contained in:
parent
e83e8a688b
commit
5c894b881c
1 changed files with 9 additions and 9 deletions
|
@ -7545,11 +7545,11 @@ public class AST2CPPTests extends AST2TestBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
// class C {
|
// class C {
|
||||||
// C& operator()() {return *this;}
|
// C& operator()() { return *this; }
|
||||||
// };
|
// };
|
||||||
// void test() {
|
// void test() {
|
||||||
// C c;
|
// C c;
|
||||||
// c()()()()()()()()()()()()()();
|
// c()()()()()()()()()()()()()();
|
||||||
// }
|
// }
|
||||||
public void testNestedOverloadedFunctionCalls_283324() throws Exception {
|
public void testNestedOverloadedFunctionCalls_283324() throws Exception {
|
||||||
final String code = getAboveComment();
|
final String code = getAboveComment();
|
||||||
|
@ -7593,18 +7593,18 @@ public class AST2CPPTests extends AST2TestBase {
|
||||||
ICPPFunction f1 = ba.assertNonProblem("f(i1)", 1, ICPPFunction.class);
|
ICPPFunction f1 = ba.assertNonProblem("f(i1)", 1, ICPPFunction.class);
|
||||||
IType t1 = f1.getType().getParameterTypes()[0];
|
IType t1 = f1.getType().getParameterTypes()[0];
|
||||||
assertTrue(t1 instanceof ICPPBasicType);
|
assertTrue(t1 instanceof ICPPBasicType);
|
||||||
assertEquals(IBasicType.t_int, ((ICPPBasicType) t1).getType());
|
assertEquals(IBasicType.Kind.eInt, ((ICPPBasicType) t1).getKind());
|
||||||
assertEquals(0, ((ICPPBasicType) t1).getQualifierBits());
|
assertEquals(0, ((ICPPBasicType) t1).getModifiers());
|
||||||
ICPPFunction f2 = ba.assertNonProblem("f(u1)", 1, ICPPFunction.class);
|
ICPPFunction f2 = ba.assertNonProblem("f(u1)", 1, ICPPFunction.class);
|
||||||
IType t2 = f2.getType().getParameterTypes()[0];
|
IType t2 = f2.getType().getParameterTypes()[0];
|
||||||
assertTrue(t2 instanceof ICPPBasicType);
|
assertTrue(t2 instanceof ICPPBasicType);
|
||||||
assertEquals(IBasicType.t_int, ((ICPPBasicType) t2).getType());
|
assertEquals(IBasicType.Kind.eInt, ((ICPPBasicType) t2).getKind());
|
||||||
assertEquals(IBasicType.IS_UNSIGNED, ((ICPPBasicType) t2).getQualifierBits());
|
assertEquals(IBasicType.IS_UNSIGNED, ((ICPPBasicType) t2).getModifiers());
|
||||||
ICPPFunction f3 = ba.assertNonProblem("f(l1)", 1, ICPPFunction.class);
|
ICPPFunction f3 = ba.assertNonProblem("f(l1)", 1, ICPPFunction.class);
|
||||||
IType t3 = f3.getType().getParameterTypes()[0];
|
IType t3 = f3.getType().getParameterTypes()[0];
|
||||||
assertTrue(t3 instanceof ICPPBasicType);
|
assertTrue(t3 instanceof ICPPBasicType);
|
||||||
assertEquals(IBasicType.t_int, ((ICPPBasicType) t3).getType());
|
assertEquals(IBasicType.Kind.eInt, ((ICPPBasicType) t3).getKind());
|
||||||
assertEquals(IBasicType.IS_LONG, ((ICPPBasicType) t3).getQualifierBits());
|
assertEquals(IBasicType.IS_LONG, ((ICPPBasicType) t3).getModifiers());
|
||||||
}
|
}
|
||||||
|
|
||||||
// typedef enum enum_name enum_name;
|
// typedef enum enum_name enum_name;
|
||||||
|
|
Loading…
Add table
Reference in a new issue