[clang] [NFC][analyzer] Add regression tests from bisection commits to the CSA's test suite (PR #241058)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 02:40:24 PST 2026


================
@@ -485,3 +485,15 @@ void test22() {
 }
 
 } // namespace testStructAlign
+
+namespace GH56264 {
+struct S {
+  int x;
+};
+
+void test() {
+  S arr[4];
+  ::new (arr + 1) S[1]; // no-warning
+}
----------------
steakhal wrote:

It's super perplexing of why did this check report this in the first place. I think it definitely needs an explanation.

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


More information about the cfe-commits mailing list