2 Commits

Author SHA1 Message Date
Chuanqi Xu
d2b0b26132 [Coroutines] Pass size parameter for deallocation function when qualified
Close https://github.com/llvm/llvm-project/issues/60545.

Previously, we would only pass the size parameter to the deallocation
function if the type is completely the same. But it is good enough to
make them unqualified the smae.
2023-02-07 00:22:22 +08:00
Chuanqi Xu
f65f06d63f [NFC] [Coroutines] Add tests for looking up deallocation
According to [dcl.fct.def.coroutine]p12, the program should be
ill-formed if the promise_type contains operator delete but none of them
are available. But this behavior was not tested before. This commit adds
the tests for it.
2022-09-06 14:57:01 +08:00