URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [pr47573.C] - Rev 801
Go to most recent revision | 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;
}
Go to most recent revision | Compare with Previous | Blame | View Log