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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [eh40.C] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
// { dg-options "-fexceptions" }
int fail = 1;
int fail = 1;
class B {
class B {
public:
public:
  B() { throw 1; }
  B() { throw 1; }
};
};
class D : public B {
class D : public B {
public:
public:
  D() try : B() {
  D() try : B() {
    fail = 1;
    fail = 1;
  } catch (char c) {
  } catch (char c) {
    fail = 1;
    fail = 1;
    throw;
    throw;
  } catch (...) {
  } catch (...) {
    fail = 0;
    fail = 0;
    throw;
    throw;
  }
  }
};
};
main() {
main() {
  try {
  try {
    D d;
    D d;
    fail = 1;
    fail = 1;
  } catch (...) {
  } catch (...) {
  }
  }
  return fail;
  return fail;
}
}
 
 

powered by: WebSVN 2.1.0

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