blob: f19ff0ab742985278bfb2935ee801e2df94b4a40 (
plain)
1
2
3
4
5
6
7
8
|
// { dg-do assemble }
class A
{
public:
virtual void f(void) = 0; // pure virtual function.
A() {f();} // { dg-warning "const" } called in a constructor
~A() {f();} // { dg-warning "destr" } called in a destructor
};
|