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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [compat/] [eh/] [unexpected1_x.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
#include 
2
 
3
struct One { };
4
struct Two { };
5
 
6
extern "C" void abort ();
7
extern void doit (void) throw (Two);
8
extern void handle_unexpected (void);
9
 
10
void
11
unexpected1_x ()
12
{
13
  std::set_unexpected (handle_unexpected);
14
 
15
  try
16
  {
17
    doit ();
18
  }
19
  catch (Two &)
20
  {
21
  }
22
  catch (...)
23
  {
24
    abort ();
25
  }
26
}

powered by: WebSVN 2.1.0

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