gcc/libstdc++-v3/testsuite/experimental/memory_resource
Jonathan Wakely 49cb790a4c PR libstdc++/77691 increase allocation size to at least alignment
It's not safe to assume that malloc(n) returns memory aligned to more
than n, so when relying on the guaranteed alignment of malloc ensure
that the number of bytes allocated is at least as large as the
alignment.

	PR libstdc++/77691
	* include/experimental/memory_resource (__resource_adaptor_imp): Do
	not allocate sizes smaller than alignment when relying on guaranteed
	alignment.
	* testsuite/experimental/memory_resource/new_delete_resource.cc:
	Adjust expected number of bytes allocated for alignof(max_align_t).

From-SVN: r265068
2018-10-12 00:21:11 +01:00
..
1.cc
70966.cc PR libstdc++/70966 make pmr::new_delete_resource() immortal 2018-06-20 20:34:53 +01:00
new_delete_resource.cc PR libstdc++/77691 increase allocation size to at least alignment 2018-10-12 00:21:11 +01:00
null_memory_resource.cc
resource_adaptor.cc Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00