diff options
Diffstat (limited to 'core/org.eclipse.cdt.core.tests')
2 files changed, 7 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2BaseTest.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2BaseTest.java index 8305b215918..9f68e1f51ee 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2BaseTest.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2BaseTest.java @@ -107,12 +107,14 @@ public class AST2BaseTest extends BaseTestCase { map.put("__GNUC__", "4"); map.put("__GNUC_MINOR__", "5"); map.put("__SIZEOF_INT__", "4"); + map.put("__SIZEOF_LONG__", "8"); return map; } private static Map<String, String> getStdMap() { Map<String, String> map= new HashMap<String, String>(); map.put("__SIZEOF_INT__", "4"); + map.put("__SIZEOF_LONG__", "8"); return map; } diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java index cbbaeb85a02..26a291eb121 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java @@ -9569,8 +9569,7 @@ public class AST2CPPTests extends AST2BaseTest { // void f(int16_t*) {} // void f(int32_t*) {} // void f(int64_t*) {} - // void f(word_t*) {} - // void test(signed char* i8, short* i16, int* i32, long long* i64, word_t* word) { + // void test(signed char* i8, short* i16, int* i32, long* i64, word_t* word) { // f(i8); // f(i16); // f(i32); @@ -9584,11 +9583,13 @@ public class AST2CPPTests extends AST2BaseTest { for (int i = 0; i < calls.length; i++) { functions[i] = bh.assertNonProblem(calls[i], 1, ICPPFunction.class); } - for (int i = 0; i < functions.length; i++) { - for (int j = i + 1; j < functions.length; j++) { + for (int i = 0; i < functions.length - 1; i++) { + for (int j = 0; j < i ; j++) { assertNotSame(calls[i] + " and " + calls[j] + " resolve to the same function", functions[i], functions[j]); } } + assertSame(calls[calls.length - 1] + " and " + calls[calls.length - 2] + " resolve to different functions", + functions[calls.length - 1], functions[calls.length - 2]); } } |