From e5eb88a31f435eb1dae0f51f969701339a97a79d Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 10 Nov 2009 16:19:52 +0100 Subject: Ported the accept methods. --- tests/manual/cplusplus/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/manual/cplusplus/main.cpp') diff --git a/tests/manual/cplusplus/main.cpp b/tests/manual/cplusplus/main.cpp index 63efc8b985..adc3c0c918 100644 --- a/tests/manual/cplusplus/main.cpp +++ b/tests/manual/cplusplus/main.cpp @@ -377,8 +377,9 @@ int main(int argc, char *argv[]) Namespace *globalNamespace = control.newNamespace(0, 0); Semantic sem(&control); - for (DeclarationListAST *decl = ast->declarations; decl; decl = decl->next) { - sem.check(decl->declaration, globalNamespace->members()); + for (DeclarationListAST *it = ast->declarations; it; it = it->next) { + DeclarationAST *declaration = it->value; + sem.check(declaration, globalNamespace->members()); } return EXIT_SUCCESS; -- cgit v1.2.1