2 // { dg-options "-Weffc++ -Wno-non-virtual-dtor" }
4 // Warn when a class has virtual functions and accessible non-virtual
5 // destructor, in which case it would be possible but unsafe to delete
6 // an instance of a derived class through a pointer to the base class.