OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [compat/] [init/] [array5_x.C] - Rev 149

Go to most recent revision | 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();
    }
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.