Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/Wdtor1.C

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