explicit_instantiation.cc: Add another instantiation.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sat, 11 Jun 2011 15:37:17 +0000 (15:37 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 11 Jun 2011 15:37:17 +0000 (16:37 +0100)
2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

* testsuite/20_util/allocator_traits/requirements/
explicit_instantiation.cc: Add another instantiation.

From-SVN: r174957

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc

index cb3f5abfb6ae9b5ac21febacf9babd60c724a6ea..fd39e4adc2d73ae5d3be17af3ae69c53f2fa9766 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * testsuite/20_util/allocator_traits/requirements/
+       explicit_instantiation.cc: Add another instantiation.
+
 2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        * testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check
index 13d3135cb140263b805d4302c32d5873bf511dc4..f73469667905656a139969384c5744a73ca29261 100644 (file)
 
 #include <memory>
 
+typedef short test_type;
+
+template<typename T>
+  struct minimal_allocator
+  {
+    typedef T value_type;
+    minimal_allocator();
+    template <typename U>
+      minimal_allocator(const minimal_allocator<U>&);
+    T* allocate(std::size_t);
+    void deallocate(T*, std::size_t);
+  };
+
 namespace std
 {
-  typedef short test_type;
   template struct allocator_traits<std::allocator<test_type>>;
+  template struct allocator_traits<minimal_allocator<test_type>>;
 }