[clang] [NFC][analyzer] Add regression tests from bisection commits to the CSA's test suite (PR #241058)
Benedek Kaibas via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 11 12:13:10 PST 2026
================
@@ -151,3 +151,25 @@ void b(void) {
foo();
}
} // no-crash
+
+float GH49330(int nValues, int x) {
+ int sqr = nValues * nValues;
+ float array[sqr];
+
+ for(unsigned long i = 0; i < sqr; ++i) {
+ array[i] = 0;
+ }
+
+ float sum = 0;
+ for (int i = 0; i < nValues; i++){
+ for (int j = 0; j < nValues; j++) {
+ sum += x * array[i + nValues * j]; // no-warning
+ }
+ }
+
+ if ( x < 12 ) {
+ GH49330(nValues, x+1);
+ }
----------------
benedekaibas wrote:
Applied changes in: [756496a](https://github.com/llvm/llvm-project/pull/241058/commits/756496a6acfb8d5f0c267067569178fff6d79503)
https://github.com/llvm/llvm-project/pull/241058
More information about the cfe-commits
mailing list