* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / tm / template-2.C
blob09fa9c1007ddd0db729182cc63360350844478a7
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-fgnu-tm -O -fdump-tree-tmmark" }
4 struct TrueFalse
6 };
8 int global;
10 template<typename T> int foo()
12   return __transaction_atomic (global + 2)
13          + __transaction_atomic (global + 3);
16 int f1()
18   return foo<TrueFalse>();
21 /* { dg-final { scan-tree-dump-times "ITM_RU" 2 "tmmark" } } */