URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [lifetime2.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// 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;
}
Go to most recent revision | Compare with Previous | Blame | View Log