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

struct none { int i[50]; };

class my_ex { } a;

none throw_it() {
  throw 1;
}

int main() {
    try {
      none n = throw_it();
    } catch (int ex) {
      return 0;
    }
}