URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [compat/] [init/] [array5_x.C] - Rev 12
Compare with Previous | Blame | View Log
extern "C" void abort (void);
extern int count;
extern int num;
struct A
{
A();
~A();
};
struct Array
{
A array[2][2][2];
};
void
array5_x ()
{
for (num = 0; num <= 8; ++num)
{
count = 0;
try
{
Array A;
}
catch (...)
{
}
if (count != 0)
abort();
}
}