summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/eh12.C
blob: 8ec2998efd481e19cd090fac9c570e722b692788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }

class MyError { };

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

  return 0;
}