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++.mike/] [eh14.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
 
4
class arghh {
5
public:
6
  int n;
7
  arghh (int v) { n = v; }
8
};
9
 
10
int main () {
11
  try {
12
    throw arghh (11);
13
  }
14
  catch (arghh& a) {
15
    if (a.n != 11)
16
      return 1;
17
  }
18
  try {
19
    throw arghh (22);
20
  }
21
  catch (arghh& a) {
22
    if (a.n != 22)
23
      return 2;
24
  }
25
}

powered by: WebSVN 2.1.0

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