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] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
extern "C" void abort (void);
2
 
3
extern int count;
4
extern int num;
5
 
6
struct A
7
{
8
  A();
9
  ~A();
10
};
11
 
12
struct Array
13
{
14
  A array[2][2][2];
15
};
16
 
17
void
18
array5_x ()
19
{
20
  for (num = 0; num <= 8; ++num)
21
    {
22
      count = 0;
23
      try
24
        {
25
          Array A;
26
        }
27
      catch (...)
28
        {
29
        }
30
      if (count != 0)
31
        abort();
32
    }
33
}

powered by: WebSVN 2.1.0

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