(root)/
gcc-13.2.0/
libitm/
testsuite/
libitm.c++/
eh-3.C
// 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 (...) { }
}