* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / tm / static_cast1.C
blob31606c57a7ee3ffb2015685615944aac7b7785d2
1 // The inverse of a transaction-safety conversion cannot be performed with
2 // static_cast.
3 // { dg-options "-fgnu-tm" }
5 typedef void (*TS)() transaction_safe;
6 void f()
8   static_cast<TS>(f); // { dg-error "static_cast" }