1// PR c++/62232 2// { dg-do compile { target c++11 } } 3// { dg-options "-Wnon-virtual-dtor" } 4 5class base 6{ 7protected: 8 ~base () {} 9 virtual void foo (){}; 10}; 11class derive final : public base 12{ 13}; 14