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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment