[libcxx] [test] Fix experimental/memory.resource.adaptor.mem/db_deallocate on Windows
authorMartin Storsjö <martin@martin.st>
Tue, 13 Jul 2021 12:38:56 +0000 (12:38 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 16 Jul 2021 20:02:47 +0000 (23:02 +0300)
commitf23f299c046ca017a7cddc6fc290f26f9fe09064
treea01e986810fe144e31465c3998716c59174ec57e
parent1b18e9ab67cdba6bc1f99b1a91c7793371098220
[libcxx] [test] Fix experimental/memory.resource.adaptor.mem/db_deallocate on Windows

The checks within the libc++experimental memory_resource class uses this
limit:

     _MaxAlign = _LIBCPP_ALIGNOF(max_align_t);

Therefore, only use max_align_t for this limit instead of using
`__STDCPP_DEFAULT_NEW_ALIGNMENT__` if available.

Differential Revision: https://reviews.llvm.org/D105905
libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp