From b6a1daaa77a7c1499593fc8d51cdc7dc5e1d5862 Mon Sep 17 00:00:00 2001
From: Jonathan Wakely <jwakely.gcc@gmail.com>
Date: Sat, 11 Jun 2011 13:49:17 +0000
Subject: [PATCH] typedefs.cc: Check for allocator_type and value_type.

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                                       | 5 +++++
 .../20_util/allocator_traits/requirements/typedefs.cc        | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b62df013c10f..cb3f5abfb6ae 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/testsuite/20_util/allocator_traits/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/allocator_traits/requirements/typedefs.cc
index 346824ffc2b5..89f57f44792a 100644
--- a/libstdc++-v3/testsuite/20_util/allocator_traits/requirements/typedefs.cc
+++ b/libstdc++-v3/testsuite/20_util/allocator_traits/requirements/typedefs.cc
@@ -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;
-- 
GitLab