Fix test memory_resource to work without sized deallocation
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Mar 2019 13:50:41 +0000 (13:50 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 1 Mar 2019 13:50:41 +0000 (13:50 +0000)
commitc5effe9673bd266887b5c4cb968cce61ce137ca1
tree7111bea6acf455f2995fbc6bdfda9981f2840dd7
parent987bbe48bb03e04810e6c97f292549f11b5b2126
Fix test memory_resource to work without sized deallocation

The checking memory_resource in the testsuite assumes sized deallocation
is supported, which might not be true for other compilers.

* testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
[!__cpp_sized_deallocation]: Do not pass size to operator delete.

From-SVN: r269312
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/testsuite_allocator.h