Cleanup postfix declarators.

This commit is contained in:
Roberto Raggi
2009-11-10 14:33:51 +01:00
parent a7219736b6
commit 24b6c858eb
10 changed files with 18 additions and 28 deletions

View File

@@ -484,7 +484,7 @@ void tst_AST::cpp_initializer_or_function_declaration()
QVERIFY(decl_id->name->asSimpleName() != 0);
QCOMPARE(decl_id->name->asSimpleName()->identifier_token, 2U);
FunctionDeclaratorAST *fun_declarator = declarator->postfix_declarators->asFunctionDeclarator();
FunctionDeclaratorAST *fun_declarator = declarator->postfix_declarators->value->asFunctionDeclarator();
QVERIFY(fun_declarator != 0);
QCOMPARE(fun_declarator->lparen_token, 3U);
QVERIFY(fun_declarator->parameters != 0);