From a9a76bae8bc5f7d9f73acca95a55bd46c873e65b Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sat, 11 Jun 2011 15:37:17 +0000 Subject: [PATCH] explicit_instantiation.cc: Add another instantiation. 2011-06-11 Jonathan Wakely * testsuite/20_util/allocator_traits/requirements/ explicit_instantiation.cc: Add another instantiation. From-SVN: r174957 --- libstdc++-v3/ChangeLog | 5 +++++ .../requirements/explicit_instantiation.cc | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cb3f5abfb6a..fd39e4adc2d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-06-11 Jonathan Wakely + + * testsuite/20_util/allocator_traits/requirements/ + explicit_instantiation.cc: Add another instantiation. + 2011-06-11 Jonathan Wakely * testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check diff --git a/libstdc++-v3/testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc index 13d3135cb14..f7346966790 100644 --- a/libstdc++-v3/testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc @@ -22,8 +22,21 @@ #include +typedef short test_type; + +template + struct minimal_allocator + { + typedef T value_type; + minimal_allocator(); + template + minimal_allocator(const minimal_allocator&); + T* allocate(std::size_t); + void deallocate(T*, std::size_t); + }; + namespace std { - typedef short test_type; template struct allocator_traits>; + template struct allocator_traits>; } -- 2.30.2