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] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// This testcase failed on s390, because cross-jumping merged 2 calls,
// This testcase failed on s390, because cross-jumping merged 2 calls,
// one with REG_EH_REGION note with no handlers (ie. termination)
// one with REG_EH_REGION note with no handlers (ie. termination)
// and one without REG_EH_REGION note.
// and one without REG_EH_REGION note.
// { dg-do run }
// { dg-do run }
// { dg-options "-O2" }
// { dg-options "-O2" }
#include 
#include 
#include 
#include 
struct E : public std::exception
struct E : public std::exception
{
{
  std::string m;
  std::string m;
  E () : m ("test") { }
  E () : m ("test") { }
  ~E () throw() { }
  ~E () throw() { }
};
};
struct C : public E { };
struct C : public E { };
void foo ()
void foo ()
{
{
  throw C ();
  throw C ();
}
}
int main ()
int main ()
{
{
  try
  try
    {
    {
      foo ();
      foo ();
    }
    }
  catch (...) { }
  catch (...) { }
}
}
 
 

powered by: WebSVN 2.1.0

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