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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [eh/] [unwind1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR middle-end/28493
2
 
3
extern "C" void abort ();
4
 
5
struct Command *ptr;
6
 
7
struct Command {
8
  Command() { ptr = this; }
9
  virtual ~Command() { if (ptr != this) abort(); }
10
};
11
 
12
void tryfunc()
13
{
14
  Command cmd;
15
  throw 1;
16
}
17
 
18
int main()
19
{
20
  try
21
    {
22
      tryfunc();
23
    }
24
  catch (int) { }
25
}

powered by: WebSVN 2.1.0

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