blob: dee5b60353286c205186b8043cccc247527e7f4b [file] [log] [blame]
/* { dg-do compile { target c++11 } } */
/* { dg-options "-fno-inline" } */
/* { dg-add-options bind_pic_locally } */
struct B
{
constexpr B ():
bp ()
{}
~B ()
{
if (bp)
bp->f ();
}
void f ();
B *bp;
};
struct A { B b;
};
void foo ()
{
A a;
}