view gcc/testsuite/g++.dg/tm/static_cast1.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// 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" }
}