Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/std/tests/P0339R6_polymorphic_allocator/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ void allocate_object_overflow_test() {

polymorphic_allocator<> alloc{};

#ifndef __SANITIZE_ADDRESS__ // TRANSITION, VSO-1854243
try {
int* vp = alloc.allocate_object<int>(threshold);
alloc.deallocate_object(vp, threshold);
} catch (const std::bad_alloc&) {
} catch (...) {
assert(false);
}
#endif // TRANSITION, VSO-1854243

try {
[[maybe_unused]] int* vp = alloc.allocate_object<int>(threshold + 1);
Expand Down