blob: 293bd692e9cbf3923fdc769c85d64fa62755a0f7 [file] [log] [blame]
// PR c++/26714
// { dg-do run }
extern "C" void abort();
bool ok = false;
struct A
{
A() { }
~A() { if (!ok) abort(); }
};
struct B
{
const A &a1;
const A &a2;
B() : a1(A()),a2(A()) { ok = true; }
};
int main()
{
B b;
}