Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb10.C
blobba9c6db7db3be7fe63c844b0deff97a447ab3728
1 // { dg-do assemble  }
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     }