OSDN Git Service

2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Jun 2011 15:37:17 +0000 (15:37 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Jun 2011 15:37:17 +0000 (15:37 +0000)
* testsuite/20_util/allocator_traits/requirements/
explicit_instantiation.cc: Add another instantiation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174957 138bc75d-0d04-0410-961f-82ee72b054a4

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

index cb3f5ab..fd39e4a 100644 (file)
@@ -1,5 +1,10 @@
 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
        for allocator_type and value_type.
 
index 13d3135..f734696 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>>;
 }