Commit ae5db839 authored by Roberto Raggi's avatar Roberto Raggi

Compile

parent 0540aa36
......@@ -6,7 +6,7 @@
#include <Scope.h>
#include <TranslationUnit.h>
#include <Literals.h>
#include <Semantic.h>
#include <Bind.h>
#include <Symbols.h>
#include <QtTest>
......
......@@ -8,7 +8,7 @@
#include <Parser.h>
#include <AST.h>
#include <ASTVisitor.h>
#include <Semantic.h>
#include <Bind.h>
#include <Scope.h>
#include <Symbols.h>
#include <CoreTypes.h>
......@@ -62,16 +62,14 @@ public:
{
QVERIFY(unit);
QVERIFY(unit->ast());
Semantic sem(unit);
Bind bind(unit);
TranslationUnitAST *ast = unit->ast()->asTranslationUnit();
QVERIFY(ast);
for (DeclarationListAST *decl = ast->declaration_list; decl; decl = decl->next) {
sem.check(decl->value, globals);
}
bind(ast, globals);
}
TranslationUnit *unit;
Scope *globals;
Namespace *globals;
unsigned errorCount;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment