[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
================
@@ -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
----------------
steakhal wrote:
Imagine we have like 8 variables and 3 loops, out of which 2 are nested. What warning was a FP - thus now missing? _[Where's Wally?](https://en.wikipedia.org/wiki/Where%27s_Wally%3F)_
https://github.com/llvm/llvm-project/pull/241058
More information about the cfe-commits
mailing list