Virtual destructors : Minor fix to a test to handle a private inheritance

This commit is contained in:
Daniel Marjamäki 2008-12-06 19:57:33 +00:00
parent b560215bc6
commit 3962bb7ae0
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ private:
void virtualDestructor4()
{
checkVirtualDestructor("class Base { public: ~Base(); };\n"
"class Derived : public Fred, public Base { };");
"class Derived : private Fred, public Base { };");
ASSERT_EQUALS( std::string("[test.cpp:1]: The destructor for the base class Base is not virtual\n"), errout.str() );
}
};