================ @@ -595,6 +595,10 @@ struct GH99278_2 { } f; }; GH99278_2<void> e; +void GH99278_3(int(*p)[]) { + delete p; + // expected-warning@-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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits