aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/eh47.C
blob: 043a6174a6fb1120882a69c72b17f6d474b639b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Special g++ Options: -fexceptions
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*

#include <cstdlib>
#include <exception>

void myterm() {
  exit (0);
}

main() {
  try {
    throw "";
  } catch (...) {
  }
  try {
    std::set_terminate (myterm);
    throw;
  } catch (...) {
    return 1;
  }
  return 1;
}