Retro68/gcc/libitm/testsuite/libitm.c++/eh-2.C

11 lines
194 B
C++
Raw Normal View History

2017-04-10 11:32:00 +00:00
// A handler can involve a transaction-safety conversion.
// { dg-do run }
// { dg-options "-fgnu-tm" }
void g() transaction_safe {}
int main()
{
try { throw g; }
catch (void (*p)()) { }
}