blob: 31606c57a7ee3ffb2015685615944aac7b7785d2 [file] [log] [blame]
// The inverse of a transaction-safety conversion cannot be performed with
// static_cast.
// { dg-options "-fgnu-tm" }
typedef void (*TS)() transaction_safe;
void f()
{
static_cast<TS>(f); // { dg-error "static_cast" }
}