public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] adjust allocator_traits testcase
@ 2011-06-11 15:10 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2011-06-11 15:10 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

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.

[-- Attachment #2: traits-test.txt --]
[-- Type: text/plain, Size: 760 bytes --]

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-11 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-11 15:10 [v3] adjust allocator_traits testcase Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).