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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [eh17.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
 
4
int err = 1;
5
 
6
struct A {
7
  ~A() {
8
    --err;
9
  }
10
};
11
 
12
struct B : public A {
13
  B() {
14
    throw 1;
15
  }
16
};
17
 
18
main() {
19
  try {
20
    B b;
21
  } catch (...) {
22
    return err;
23
  }
24
  return 1;
25
}

powered by: WebSVN 2.1.0

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