1 #include "analyzer-decls.h"
7 extern void Py_Dealloc (PyObject
*op
);
9 #define Py_INCREF(op) \
11 ((PyObject*)(op))->ob_refcnt++; \
14 #define Py_DECREF(op) \
16 if (--((PyObject*)(op))->ob_refcnt == 0) \
18 /*Py_Dealloc((PyObject *)(op));*/ \
22 void test_1 (PyObject
*obj
)
24 int orig_refcnt
= obj
->ob_refcnt
;
29 __analyzer_eval (obj
->ob_refcnt
== orig_refcnt
+ 2); /* { dg-warning "TRUE" } */
31 /* TODO: uncomment the Py_Dealloc, which leads to two paths. */