Some consistency changes to library & headers flags.
[splint-patched.git] / test / loopexec.c
blobeee10a6a628fa92e23e3c7d94b34e021999e84cd
1 /*
2 ** Some tests for obvious loop exec
3 */
5 void g (/*@out@*/ int x[])
7 int i;
9 for (i = 0; i < 2; i++)
11 x[i] = i;
15 void g1 (/*@out@*/ int x[])
17 int i;
19 for (i = 0; i <= 2; i++)
21 x[i] = i;
26 void g2 (/*@out@*/ int x[])
28 int i;
30 for (i = 0; i <= 0; i++) /* won't execute */
32 x[i] = i;