From 3962bb7ae0f7c14535270610330f7dca45585312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 6 Dec 2008 19:57:33 +0000 Subject: [PATCH] Virtual destructors : Minor fix to a test to handle a private inheritance --- testclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testclass.cpp b/testclass.cpp index d4a6a800a..a312c841b 100644 --- a/testclass.cpp +++ b/testclass.cpp @@ -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() ); } };