aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/eh12.C
blob: 1a42e52c82c55424aea0ca1833885d5e30e3b8bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Special g++ Options: -fexceptions
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*

class MyError { };

int main (int argc, char **argv) {
  try {
    throw MyError();
  }
  catch (MyError x) {
  }

  return 0;
}