repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.eh
/
terminate2.C
blob
3a3115843e7c00bac1627f833c8ae34894a80fcc
1
// { dg-do run }
2
// Test that an unhandled exception causes us to call terminate.
3
4
#include <exception>
5
#include <cstdlib>
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
}