summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Weff1.C
blob: a00dc29bf5f572e7a4b0feb183e6e3e99453ed41 (plain)
1
2
3
4
5
// { dg-options "-Weffc++" }

struct S {};
/* Base classes should have virtual destructors.  */
struct T : public S {}; // { dg-warning "" }