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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [array1.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
int i;
3
 
4
struct S {
5
  S (int) {
6
    ++i;
7
    if (i == 3)
8
      throw 3;
9
  }
10
 
11
  S () {}
12
 
13
  ~S() {
14
    --i;
15
  }
16
};
17
 
18
int main()
19
{
20
  try {
21
    S s[5] = { 0, 1, 2, 3, 4 };
22
  } catch (...) {
23
  }
24
 
25
  if (i != 1)
26
    return 1;
27
}

powered by: WebSVN 2.1.0

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