diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2011-06-11 13:49:17 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2011-06-11 14:49:17 +0100 |
commit | b6a1daaa77a7c1499593fc8d51cdc7dc5e1d5862 (patch) | |
tree | c34f72f695c64e7cc62944c9e4ac5a8ab1e713b0 /libstdc++-v3/testsuite | |
parent | 39e2db00dad38d188a235308d53a2963925bdd85 (diff) | |
download | gcc-b6a1daaa77a7c1499593fc8d51cdc7dc5e1d5862.zip gcc-b6a1daaa77a7c1499593fc8d51cdc7dc5e1d5862.tar.gz gcc-b6a1daaa77a7c1499593fc8d51cdc7dc5e1d5862.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/20_util/allocator_traits/requirements/typedefs.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 346824f..89f57f4 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; |