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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.eh/] [terminate2.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run  }
2
// Test that an unhandled exception causes us to call terminate.
3
 
4
#include 
5
#include 
6
 
7
void my_terminate ()
8
{
9
  std::exit (0);
10
}
11
 
12
int main (void)
13
{
14
  std::set_terminate (my_terminate);
15
  throw 1;
16
  return 1;
17
}

powered by: WebSVN 2.1.0

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