[clang] One more fix for P3144R2 implementation (PR #149406)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 21 13:56:21 PDT 2025


================
@@ -595,6 +595,10 @@ struct GH99278_2 {
   } f;
 };
 GH99278_2<void> e;
+void GH99278_3(int(*p)[]) {
+  delete p;
+  // expected-warning at -1 {{'delete' applied to a pointer-to-array type 'int (*)[]' treated as 'delete[]'}}
+};
----------------
efriedma-quic wrote:

Maybe also test deleting an incomplete array of a complete class type?

https://github.com/llvm/llvm-project/pull/149406


More information about the cfe-commits mailing list