Update ChangeLog and version files for release
[official-gcc.git] / libitm / testsuite / libitm.c++ / eh-3.C
blob307a63924c33b0c7fdb257b2e9f82ed0a5f21f6e
1 // A handler cannot do the reverse of a transaction-safety conversion.
2 // { dg-do run }
3 // { dg-options "-fgnu-tm" }
5 extern "C" void abort();
7 void g() {}
9 int main()
11   try { throw g; }
12   catch (void (*p)() transaction_safe) { abort(); }
13   catch (...) { }