Don't try calling lsl when file is missing.
[splint-patched.git] / test / break.c
blob07e9b556696abae82656a6dcb50df9eccdfa5c78
1 void f (int x)
3 while (x < 3) /* 3 [5]. Suspected infinite loop: no condition values modified */
5 switch (x)
7 case 1:
8 /*@switchbreak@*/
9 break;
10 case 2:
11 /*@loopbreak@*/ /* 1. Break preceded by loopbreak is breaking a switch */
12 break;
13 case 3:
14 break; /* 2. Break statement in switch inside loop */
17 while (x > 2) /* 2 [4]. Suspected infinite loop: no condition values modified */
19 if (3 > 4)
21 break; /* 3. Break statement in nested loop */
23 else
25 /*@innerbreak@*/
26 break;
31 while (x < 2)
33 x++;
34 /*@innerbreak@*/ break; /* 4 [6]. Break preceded by innerbreak is not in a deep loop */