Some consistency changes to library & headers flags.
[splint-patched.git] / test / fields3.c
blob416bbd356f25648d26c44dcab39b41eb0fdee791
1 typedef struct
3 int *x;
4 int *y;
5 } *pair;
7 void pair_free (/*@only@*/ pair p)
9 int i = 3;
11 free (p->x);
13 if (i < 2)
15 *(p->y) = 3;
16 i++;
19 free (p->y);
20 free (p);
23 void pair_free2 (/*@only@*/ pair p)
25 int i = 3;
27 free (p->x);
29 if (i < 2)
31 *(p->y) = 3;
33 else
35 *(p->y) = 12;
38 free (p->y);
39 free (p);