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
12 extern template class allocator<char>;
14 template<typename _Alloc = allocator<char> > class basic_string
19 __attribute__((transaction_safe))
20 basic_string() : _M_dataplus(_Alloc())