OSDN Git Service

2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Jun 2011 13:49:17 +0000 (13:49 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Jun 2011 13:49:17 +0000 (13:49 +0000)
* testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check
for allocator_type and value_type.

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

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

index b62df01..cb3f5ab 100644 (file)
@@ -1,5 +1,10 @@
 2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
+       * testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check
+       for allocator_type and value_type.
+
+2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
        * testsuite/30_threads/packaged_task/uses_allocator.cc: New.
        * testsuite/30_threads/promise/uses_allocator.cc: Likewise.
 
index 346824f..89f57f4 100644 (file)
@@ -29,6 +29,8 @@ void test01()
 {
   // Check for required typedefs
   typedef std::allocator_traits<T>                  test_type;
+  typedef typename test_type::allocator_type        allocator_type;
+  typedef typename test_type::value_type            value_type;
   typedef typename test_type::pointer               pointer;
   typedef typename test_type::const_pointer         const_pointer;
   typedef typename test_type::void_pointer          void_pointer;