Commit a9a76bae by Jonathan Wakely Committed by Jonathan Wakely

explicit_instantiation.cc: Add another instantiation.

2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* testsuite/20_util/allocator_traits/requirements/
	explicit_instantiation.cc: Add another instantiation.

From-SVN: r174957
parent ea89702b
2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com> 2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/20_util/allocator_traits/requirements/
explicit_instantiation.cc: Add another instantiation.
2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check * testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check
for allocator_type and value_type. for allocator_type and value_type.
......
...@@ -22,8 +22,21 @@ ...@@ -22,8 +22,21 @@
#include <memory> #include <memory>
typedef short test_type;
template<typename T>
struct minimal_allocator
{
typedef T value_type;
minimal_allocator();
template <typename U>
minimal_allocator(const minimal_allocator<U>&);
T* allocate(std::size_t);
void deallocate(T*, std::size_t);
};
namespace std namespace std
{ {
typedef short test_type;
template struct allocator_traits<std::allocator<test_type>>; template struct allocator_traits<std::allocator<test_type>>;
template struct allocator_traits<minimal_allocator<test_type>>;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment