From fde12114358e0e81228ccf76f9e6ff8aaf6b65c3 Mon Sep 17 00:00:00 2001 From: dchidindu5 Date: Mon, 11 Nov 2024 12:01:45 +0100 Subject: [PATCH] fix test errors --- compiler/src/dmd/dsymbol.h | 2 -- compiler/src/tests/cxxfrontend.cc | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/src/dmd/dsymbol.h b/compiler/src/dmd/dsymbol.h index 28899e3e0702..7b33ed2910bf 100644 --- a/compiler/src/dmd/dsymbol.h +++ b/compiler/src/dmd/dsymbol.h @@ -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); } diff --git a/compiler/src/tests/cxxfrontend.cc b/compiler/src/tests/cxxfrontend.cc index 9ece3bc4e26c..6a8e53d9ab66 100644 --- a/compiler/src/tests/cxxfrontend.cc +++ b/compiler/src/tests/cxxfrontend.cc @@ -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);