[all-commits] [llvm/llvm-project] 037a05: [libc++] Handle 0 size case for testing support op...
Jake Egan via All-commits
all-commits at lists.llvm.org
Mon Jun 3 13:23:29 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 037a0528bbb4606388fb0805c34a413abbedea13
https://github.com/llvm/llvm-project/commit/037a0528bbb4606388fb0805c34a413abbedea13
Author: Jake Egan <Jake.egan at ibm.com>
Date: 2024-06-03 (Mon, 03 Jun 2024)
Changed paths:
M libcxx/test/std/algorithms/alg.sorting/alg.merge/inplace_merge.pass.cpp
M libcxx/test/support/count_new.h
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list