1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } } 2 // { dg-options "-fexceptions" } 3 4 int err = 1; 5 6 struct A { ~AA7 ~A() { 8 --err; 9 } 10 }; 11 12 struct B : public A { BB13 B() { 14 throw 1; 15 } 16 }; 17 main()18int main() { 19 try { 20 B b; 21 } catch (...) { 22 return err; 23 } 24 return 1; 25 } 26