PR libstdc++/70940 make pmr::resource_adaptor return aligned memory
authorJonathan Wakely <jwakely@redhat.com>
Thu, 21 Jun 2018 16:24:00 +0000 (17:24 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 21 Jun 2018 16:24:00 +0000 (17:24 +0100)
commite9df6a8f03d5c6422350865a374e5f5b948c05ed
tree6ae33deaf8e4e7a756d753319c1e7ec4190f3031
parent7956c508ddf36901d06bdb3f5a1ae099ee656924
PR libstdc++/70940 make pmr::resource_adaptor return aligned memory

PR libstdc++/70940
* include/experimental/memory_resource
(__resource_adaptor_imp::do_deallocate): Add missing return.
* testsuite/experimental/memory_resource/new_delete_resource.cc: New.
* testsuite/experimental/memory_resource/resource_adaptor.cc: Test
resource_adaptor with std::allocator, __gnu_cxx::new_allocator and
__gnu_cxx::malloc_allocator.

From-SVN: r261851
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/memory_resource
libstdc++-v3/testsuite/experimental/memory_resource/new_delete_resource.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc