Skip to content

Commit

Permalink
update aggregate.h
Browse files Browse the repository at this point in the history
  • Loading branch information
dchidindu5 committed Nov 13, 2024
1 parent fde1211 commit 2fc1a59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compiler/src/dmd/aggregate.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace dmd
FuncDeclaration *search_toString(StructDeclaration *sd);
void semanticTypeInfoMembers(StructDeclaration *sd);
bool fill(StructDeclaration* sd, const Loc &loc, Expressions &elements, bool ctorinit);
Scope* newScope(AggregateDeclaration *d, Scope* sc);
Scope* newScope(AttribDeclaration *d, Scope* sc);
}

enum class ClassKind : uint8_t
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/tests/cxxfrontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ 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(dmd::vtblOffset(cd) == 1);
cd->accept(&tv);
assert(tv.aggr == true);

Expand Down

0 comments on commit 2fc1a59

Please sign in to comment.