Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wdtor1.C
blob: e376017deb339ff21a9db0575ef4af4738f6c8b4 [
file
] [
log
] [
blame
]
// PR c++/62232
// { dg-do compile { target c++11 } }
// { dg-options "-Wnon-virtual-dtor" }
class
base
{
protected
:
~
base
()
{}
virtual
void
foo
(){};
};
class
derive
final
:
public
base
{
};