mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-12 11:29:30 +00:00
15 lines
261 B
C
15 lines
261 B
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 (...) { }
|
|
}
|