Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2007-06-20 19:41:17 +0000
committerMike Kucera2007-06-20 19:41:17 +0000
commit1c842dd07e713b92b1d4190d171e6e2419c1972a (patch)
treefbc5b767428ec95d4bbc2564a54cd63edd4e4cc4 /upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse
parent24482b2c0009b7d56f867c1b826d16b5aeccbb88 (diff)
downloadorg.eclipse.cdt-1c842dd07e713b92b1d4190d171e6e2419c1972a.tar.gz
org.eclipse.cdt-1c842dd07e713b92b1d4190d171e6e2419c1972a.tar.xz
org.eclipse.cdt-1c842dd07e713b92b1d4190d171e6e2419c1972a.zip
fixes for bugs #193541 and #192676
Diffstat (limited to 'upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse')
-rw-r--r--upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java
index 249e948c817..e8f94745354 100644
--- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java
+++ b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCLanguageExtensionTests.java
@@ -29,6 +29,7 @@ import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclSpecifier;
import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTStatement;
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
+import org.eclipse.cdt.core.dom.ast.IASTTypeIdExpression;
import org.eclipse.cdt.core.dom.ast.IASTUnaryExpression;
import org.eclipse.cdt.core.dom.ast.IScope;
import org.eclipse.cdt.core.dom.ast.IVariable;
@@ -486,12 +487,11 @@ public class UPCLanguageExtensionTests extends TestCase {
IASTStatement[] body = ((IASTCompoundStatement)main.getBody()).getStatements();
assertEquals(8, body.length);
- IASTUnaryExpression cexpr;
- cexpr = (IASTUnaryExpression)((IASTExpressionStatement)body[0]).getExpression();
- assertEquals(IASTUnaryExpression.op_sizeof, cexpr.getOperator());
- cexpr = (IASTUnaryExpression)((IASTExpressionStatement)body[1]).getExpression();
+ IASTTypeIdExpression idexpr = (IASTTypeIdExpression)((IASTExpressionStatement)body[0]).getExpression();
+
+ IASTUnaryExpression cexpr = (IASTUnaryExpression)((IASTExpressionStatement)body[1]).getExpression();
assertEquals(IASTUnaryExpression.op_sizeof, cexpr.getOperator());
IUPCASTSizeofExpression expr;

Back to the top