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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [eh28.C] - Blame information for rev 305

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
#include 
5
 
6
int fail = 1;
7
 
8
class X            { public: virtual void p() { } };
9
class Y : public X { public: virtual void p() { fail = 0; } };
10
 
11
main()
12
{
13
  try          { Y y; throw y; }
14
  catch (X& x) { x.p();  }
15
  catch (...)  { }
16
  return fail;
17
}

powered by: WebSVN 2.1.0

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