[PATCH] D133341: [C++] [Coroutines] Prefer aligned (de)allocation for coroutines - implement the option2 of P2014R0
Yuanfang Chen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 13 18:58:16 PDT 2022
ychen added inline comments.
================
Comment at: clang/test/SemaCXX/coroutine-alloc-4.cpp:49
+ void return_value(int) {}
+ void *operator new(std::size_t, std::align_val_t) noexcept;
+ void *operator new(std::size_t) noexcept;
----------------
Like this test case, please add additional test cases to check the expected look-up order, one test for each consecutive pair should be good.
```
void* T::operator new ( std::size_t count, std::align_val_t al, user-defined-args... );
void* T::operator new ( std::size_t count, std::align_val_t al);
void* T::operator new ( std::size_t count, user-defined-args... );
void* T::operator new ( std::size_t count);
void* operator new ( std::size_t count, std::align_val_t al );
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133341/new/
https://reviews.llvm.org/D133341
More information about the cfe-commits
mailing list