OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [eh/] [unwind1.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 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.