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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [testsuite/] [18_support/] [14026.cc] - Rev 19

Compare with Previous | Blame | View Log

// PR 14026
// 18.6.4 uncaught_exception
 
#include <cstdlib>
#include <exception>
#include <testsuite_hooks.h>
 
static void
no_uncaught ()
{
  if (std::uncaught_exception ())
    abort ();
}
 
int
main ()
{
  try
    {
      throw 1;
    }
  catch (...)
    {
      try
        {
          throw;
        }
      catch (...)
        {
          no_uncaught ();
        }
    }
  no_uncaught ();
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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