Debian Codegraph @

libitm/testsuite/libitm.c++/eh-3.C

raw
1 // A handler cannot do the reverse of a transaction-safety conversion.
2 // { dg-do run }
3 // { dg-options "-fgnu-tm" }
4
5 extern "C" void abort();
6
7 void g() {}
8
9 int main()
10 {
11 try { throw g; }
12 catch (void (*p)() transaction_safe) { abort(); }
13 catch (...) { }
14 }