[all-commits] [llvm/llvm-project] 495419: [NFC] Add test of sized deallocation for coroutines

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Sep 5 23:47:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 495419628bbab1a99cfc00d0c44b877bfc8e4a14
      https://github.com/llvm/llvm-project/commit/495419628bbab1a99cfc00d0c44b877bfc8e4a14
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

  Changed paths:
    A clang/test/CodeGenCoroutines/coro-dealloc.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list