Unverified Commit 037a0528 authored by Jake Egan's avatar Jake Egan Committed by GitHub
Browse files

[libc++] Handle 0 size case for testing support operator new (#93834)

The return of malloc is implementation defined when the requested size
is 0. On platforms (such as AIX) that return a null pointer for 0 size,
operator new will throw a bad_alloc exception. operator new should
return a non null pointer for 0 size instead.
parent 6ef632ad
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