[libc-commits] [libc] [libc] Added missing operator delete generated by gcc/clang (PR #67457)
Mikhail R. Gadelha via libc-commits
libc-commits at lists.llvm.org
Mon Oct 2 12:50:27 PDT 2023
mikhailramalho wrote:
These `operator delete(void*, unsigned long)` calls are only being generated for test classes with arrays in their `run()` methods, e.g.:
* bsearch_test.cpp:
```
TEST(LlvmLibcBsearchTest, IntegerArray) {
constexpr int ARRAY[25] = {10, 23, 33, 35, 55, 70, 71,
100, 110, 123, 133, 135, 155, 170,
171, 1100, 1110, 1123, 1133, 1135, 1155,
1170, 1171, 11100, 12310};
```
* qsort_r_test.cpp:
```
TEST(LlvmLibcQsortRTest, ReverseSortedArray) {
int array[25] = {25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13,
12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
```
* bitset_test.cpp:
```
TEST(LlvmLibcBitsetTest, SettingBitXDoesNotResetBitY) {
LIBC_NAMESPACE::cpp::bitset<128> bitset;
```
https://github.com/llvm/llvm-project/pull/67457
More information about the libc-commits
mailing list