Patchwork [v3] adjust allocator_traits testcase

login
register
mail settings
Submitter Jonathan Wakely
Date June 11, 2011, 2:36 p.m.
Message ID <BANLkTinFgMB7LQ4VtLLSiu-PCCaNJexrng@mail.gmail.com>
Download mbox | patch
Permalink /patch/100012/
State New
Headers show

Comments

Jonathan Wakely - June 11, 2011, 2:36 p.m.
2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

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

Tested x86_64-linux, committed to trunk.

Patch

Index: testsuite/20_util/allocator_traits/requirements/typedefs.cc
===================================================================
--- testsuite/20_util/allocator_traits/requirements/typedefs.cc	(revision 174931)
+++ testsuite/20_util/allocator_traits/requirements/typedefs.cc	(working copy)
@@ -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;