[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:22 PST 2026
================
@@ -380,3 +380,12 @@ void externFunctions2() {
void callNonblockingExtern(MPI_Request *req);
callNonblockingExtern(&req);
}
+
+bool contains();
+void GH64647() {
+ if (contains()) {
+ MPI_Request request_item;
+ MPI_Wait(&request_item, MPI_STATUS_IGNORE); // expected-warning {{Request 'request_item' has no matching nonblocking call.}}
+ }
+ GH64647();
----------------
steakhal wrote:
```suggestion
}
GH64647(); // recursing back!
```
BTW this self-recursion without any limit is pretty unrealistic - albeit this particular case likely has the tail-recursion optimization so at least it's not going to run out of stack space as it runs - it just never terminates. Restructuring it to be more plausible likely avoidts future warnings raising this issue.
https://github.com/llvm/llvm-project/pull/241058
More information about the cfe-commits
mailing list