Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
index 9dbb5f75076..5dca53d8e59 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
@@ -1091,7 +1091,7 @@ public class AST2Tests extends AST2TestBase {
IASTFunctionCallExpression fcall = (IASTFunctionCallExpression) expStatement.getExpression();
IASTIdExpression fcall_id = (IASTIdExpression) fcall.getFunctionNameExpression();
IASTName name_fcall = fcall_id.getName();
- assertNull(fcall.getParameterExpression());
+ assertEquals(0, fcall.getArguments().length);
// void f() {}
IASTFunctionDefinition fdef = (IASTFunctionDefinition) tu.getDeclarations()[2];
@@ -4955,7 +4955,7 @@ public class AST2Tests extends AST2TestBase {
IASTFunctionDefinition func= (IASTFunctionDefinition) tu.getDeclarations()[0];
IASTFunctionCallExpression fcall= (IASTFunctionCallExpression) ((IASTExpressionStatement)((IASTCompoundStatement) func.getBody()).getStatements()[0]).getExpression();
- IASTLiteralExpression lit= (IASTLiteralExpression) fcall.getParameterExpression();
+ IASTLiteralExpression lit= (IASTLiteralExpression) fcall.getArguments()[0];
assertEquals("\"this is a string\"", lit.toString());
}
@@ -5397,8 +5397,11 @@ public class AST2Tests extends AST2TestBase {
IASTFunctionCallExpression f= (IASTFunctionCallExpression) expr;
polishNotation(f.getFunctionNameExpression(), buf);
buf.append(',');
- polishNotation(f.getParameterExpression(), buf);
- buf.append(",()");
+ for (IASTInitializerClause arg : f.getArguments()) {
+ polishNotation((IASTExpression) arg, buf);
+ buf.append(',');
+ }
+ buf.append("()");
} else if (expr instanceof IASTArraySubscriptExpression) {
IASTArraySubscriptExpression f= (IASTArraySubscriptExpression) expr;
polishNotation(f.getArrayExpression(), buf);

Back to the top