[NFC] Add test of sized deallocation for coroutines
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 6 Sep 2022 06:44:14 +0000 (14:44 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 6 Sep 2022 06:44:16 +0000 (14:44 +0800)
commit495419628bbab1a99cfc00d0c44b877bfc8e4a14
tree90611f4c96d3a1d7a193f66754377f9de189e53b
parenta8ec90ad9cfd5f3d4fda1272490a92c5b295c46f
[NFC] Add test of sized deallocation for coroutines

[dcl.fct.def.coroutine]p12 says:

> If both a usual deallocation function with only a pointer parameter
> and a usual deallocation function with both a pointer parameter and a
> size parameter are found, then the selected deallocation function
> shall be the one with two parameters.

However, the sized deallocation function is disabled by default for ABI
reasons. This leads the sentence never get tested and covered. This
commit tries to add a test for it
clang/test/CodeGenCoroutines/coro-dealloc.cpp [new file with mode: 0644]