[clang] [clang][analyzer] Add a test case to PR-70792 for Issue-59493 (PR #71073)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 10:00:17 PDT 2023


================
@@ -66,3 +66,23 @@ struct Derived : Base {
 void entry() { Derived test; }
 
 } // namespace delegate_ctor_call
+
+// Additional test case from issue #59493
+namespace init_list_array {
+
+struct Base {
+  int foox[1];
----------------
steakhal wrote:

I'd suggest a more realistic array size for the test and also test some of the subsequent elements, including zero initialized elements.

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


More information about the cfe-commits mailing list