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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [forced.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// This test only applies to glibc (NPTL) targets.
2
// { dg-do run { target *-*-linux* } }
3
// { dg-options "-pthread" }
4
 
5
#include 
6
#include 
7
extern "C" int printf (const char *, ...);
8
 
9
int main()
10
{
11
  try
12
    {
13
      pthread_exit (0);
14
    }
15
  catch (abi::__forced_unwind &)
16
    {
17
      printf ("caught forced unwind\n");
18
      throw;
19
    }
20
  catch (...)
21
    {
22
      printf ("caught ...\n");
23
      return 1;
24
    }
25
}

powered by: WebSVN 2.1.0

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