Skip to content
Unverified Commit 4207ad57 authored by azhan92's avatar azhan92 Committed by GitHub
Browse files

[libc++] Fix noexcept behaviour of operator new helper functions (#74337)



This patch removes the noexcept specifier introduced in #69407 since the
Standard allows a new handler to throw an exception of type bad_alloc 
(or derived from it). With the noexcept specifier on the helper
functions, we would immediately terminate the program.

The patch also adds tests for the case that had regressed.

Co-authored-by: default avatarAlison Zhang <alisonzhang@ibm.com>
parent 5ce28684
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment