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/] [crossjump1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// This testcase failed on s390, because cross-jumping merged 2 calls,
2
// one with REG_EH_REGION note with no handlers (ie. termination)
3
// and one without REG_EH_REGION note.
4
// { dg-do run }
5
// { dg-options "-O2" }
6
 
7
#include 
8
#include 
9
 
10
struct E : public std::exception
11
{
12
  std::string m;
13
  E () : m ("test") { }
14
  ~E () throw() { }
15
};
16
 
17
struct C : public E { };
18
 
19
void foo ()
20
{
21
  throw C ();
22
}
23
 
24
int main ()
25
{
26
  try
27
    {
28
      foo ();
29
    }
30
  catch (...) { }
31
}

powered by: WebSVN 2.1.0

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