================ @@ -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[]'}} +}; ---------------- hvdijk wrote:
I've changed the array tests to use `delete []` so that they test something useful, so that they test something that could be valid even for non-null pointers. 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