[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
================
@@ -99,3 +99,27 @@ void nestedLazyCompoundVal(List* n) {
}
delete w;
}
+
+struct GH60694_Node { GH60694_Node *parent; };
+
+void GH60694(GH60694_Node *a, GH60694_Node *b) {
+ if (a->parent)
+ return;
+ *a = *b;
+ a->parent->parent = 0;
+}
+
+void free(void *);
+
+struct GH26595_List { GH26595_List *next; };
+
+GH26595_List *GH26595(GH26595_List *item) {
+ GH26595_List *next = item->next;
+ if (next) {
+ *item = *next;
+ free(next);
+ return item->next; // no-warning
+ }
+
+ return item;
----------------
steakhal wrote:
I think you know the drill.
https://github.com/llvm/llvm-project/pull/241058
More information about the cfe-commits
mailing list