Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
static_cast1.C
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" }
}