================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits