FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb10.C
blob7da5d7562ee225d0e9353e0876a31a8a8948439a
1 // Build don't link:
2 template <int object_size>
3 class _fixed_size_allocator
5   private:
7     struct      something { };
8     static something *  asdf;
10   public:
12     static void         delete_object ();
16 template <class T>
17 class object_allocator
19   private:
21     typedef     _fixed_size_allocator<sizeof (T)>               allocator;
23   public:
25     static void         deallocate (T * p)
26     {
27         allocator::delete_object (reinterpret_cast<void *> (p));
28     }