blob: 32071cfba06ae3ea8cd908b26cdac314982439c4 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-optimized" } */
struct B {
B* self;
B() : self( this ) { self->f(); }
virtual void f() = 0;
};
struct D : B
{
void f() {}
};
int main()
{
D d;
}
/* { dg-final { scan-tree-dump "cxa_pure_virtual" "optimized"} } */