Skip to content

Commit

Permalink
fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dchidindu5 committed Nov 11, 2024
1 parent 252eb9a commit fde1211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions compiler/src/dmd/dsymbol.h
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,4 @@ namespace dmd
Dsymbols *include(Dsymbol *d, Scope *sc);
void setScope(Dsymbol *d, Scope *sc);
void importAll(Dsymbol *d, Scope *sc);
Scope* newScope(AggregateDeclaration d, Scope* sc);
Scope* newScope(AttribDeclaration d, Scope* sc);
}
4 changes: 2 additions & 2 deletions compiler/src/tests/cxxfrontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ void test_visitors()

ClassDeclaration *cd = ClassDeclaration::create(loc, Identifier::idPool("TypeInfo"), NULL, NULL, true);
assert(cd->isClassDeclaration() == cd);
//assert(cd->vtblOffset() == 1);
assert(vtblOffset(cd) == 1);
assert(cd->vtblOffset() == 1);
//assert(vtblOffset(cd) == 1);
cd->accept(&tv);
assert(tv.aggr == true);

Expand Down

0 comments on commit fde1211

Please sign in to comment.