* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / tm / pr47573.C
blob7410533a5f57d191e05ed1a28ec36df7c2cd5729
1 // Without comdat support, we don't see the body of the
2 // extern template class constructor, so limit this to
3 // known comdat targets.
4 // { dg-do compile { target comdat_group } }
5 // { dg-options "-fgnu-tm" }
7 template<typename _Tp> class allocator
9         public:
10         allocator() { }
12 extern template class allocator<char>;
14 template<typename _Alloc = allocator<char> > class basic_string
16         public:
17         _Alloc _M_dataplus;
19         __attribute__((transaction_safe))
20         basic_string() : _M_dataplus(_Alloc())
21         {
22         }
25 int getStringHeight()
27         basic_string<> tmp;
28         return 0;