URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [pr47573.C] - Rev 783
Compare with Previous | Blame | View Log
// { dg-do compile }
// { dg-options "-fgnu-tm" }
template<typename _Tp> class allocator
{
public:
allocator() { }
};
extern template class allocator<char>;
template<typename _Alloc = allocator<char> > class basic_string
{
public:
_Alloc _M_dataplus;
__attribute__((transaction_safe))
basic_string() : _M_dataplus(_Alloc())
{
}
};
int getStringHeight()
{
basic_string<> tmp;
}