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