[clang] Add test for CWG255
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>
Fri, 7 Apr 2023 13:56:12 +0000 (17:56 +0400)
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>
Fri, 7 Apr 2023 14:33:33 +0000 (18:33 +0400)
commit33e84315e7d674cf6327d23f035aa4a2f28ac8ee
tree1fd944dba3bfb9fb2fdd7ca9eeb682f67d90d8db
parent9af8dca70fce1538675a857e3a053f6d35b18aea
[clang] Add test for CWG255

[[https://wg21.link/p1787 | P1787]]: CWG255 (partially resolved by N3778 is resolved by generally specifying the restriction to usual deallocation functions.
Wording: In any case, any declarations other than of usual deallocation functions ([basic.stc.dynamic.deallocation]) are discarded. ([expr.delete]/9)

Reviewed By: #clang-language-wg, cor3ntin

Differential Revision: https://reviews.llvm.org/D147549
clang/test/CXX/drs/dr2xx.cpp
clang/www/cxx_dr_status.html