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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [eh2.C] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR 6764
2
// { dg-do run }
3
// { dg-options "-O -fomit-frame-pointer" }
4
 
5
extern "C" void abort ();
6
 
7
class test
8
{
9
 public:
10
  test * const me;
11
  test () : me(this) { }
12
  ~test () { if (me != this) abort (); }
13
};
14
 
15
void x1 ()
16
{
17
  test w1;
18
  throw 1;
19
}
20
 
21
void x2 ()
22
{
23
  test w2;
24
  x1 ();
25
}
26
 
27
int main (void)
28
{
29
  try {
30
    x2 ();
31
  } catch (...) {
32
  }
33
  return 0;
34
}

powered by: WebSVN 2.1.0

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