From: Jonathan Wakely Date: Sat, 11 Jun 2011 15:37:17 +0000 (+0000) Subject: explicit_instantiation.cc: Add another instantiation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9a76bae8bc5f7d9f73acca95a55bd46c873e65b;p=gcc.git 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 --- 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>; }