aboutsummaryrefslogtreecommitdiff
path: root/libitm/testsuite/libitm.c++/eh-3.C
blob: 307a63924c33b0c7fdb257b2e9f82ed0a5f21f6e (plain)
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 (...) { }
}