]> andersk Git - splint.git/blame - test/looptesteffect.c
Fixed problem with assertion checking for negative shifts in
[splint.git] / test / looptesteffect.c
CommitLineData
52e90c0f 1
2typedef struct elem_ elem;
3
4struct elem_ {
5 /*@null@*/ elem *next;
6 int val;
7};
8
9void foo(/*@null@*/ elem *e)
10{
11 if ((e != NULL) && (e->val > 2))
12 {
13 ;
14 }
15
16 for (; ((e != NULL) && (e->val > 2)); e=e->next) ;
17
18 for (; ((e == NULL) || (e->val > 2)); e=e->next) ;
19}
This page took 0.064508 seconds and 5 git commands to generate.