URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb10.C] - Rev 384
Compare with Previous | Blame | View Log
// { dg-do assemble }
template <int object_size>
class _fixed_size_allocator
{
private:
struct something { };
static something * asdf;
public:
static void delete_object ();
};
template <class T>
class object_allocator
{
private:
typedef _fixed_size_allocator<sizeof (T)> allocator;
public:
static void deallocate (T * p)
{
allocator::delete_object (reinterpret_cast<void *> (p));
}
};