URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb10.C] - Rev 841
Go to most recent revision | 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));
}
};
Go to most recent revision | Compare with Previous | Blame | View Log