typedefs.cc: Check for allocator_type and value_type.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sat, 11 Jun 2011 13:49:17 +0000 (13:49 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 11 Jun 2011 13:49:17 +0000 (14:49 +0100)
2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

* testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check
for allocator_type and value_type.

From-SVN: r174953

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

index b62df013c10fa1a48b9c1d1327547a8b17cc88b3..cb3f5abfb6ae9b5ac21febacf9babd60c724a6ea 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 346824ffc2b5656102fa6769ba01e6d932e3aa4b..89f57f44792afd0be02c658a61b5936e1395142f 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;