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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/13944
2
 
3
// Verify that we don't call terminate() if initializing the exception
4
// object throws.
5
 
6
// { dg-do run }
7
 
8
struct A
9
{
10
  A() { }
11
  A(const A&) { throw 1; }
12
};
13
 
14
A a;
15
 
16
int main()
17
{
18
  try
19
    {
20
      throw a;
21
    }
22
  catch (int)
23
    {
24
      return 0;
25
    }
26
  catch (A&)
27
    {
28
      return 2;
29
    }
30
  return 3;
31
}

powered by: WebSVN 2.1.0

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