]> andersk Git - splint.git/blame - test/modifies.c
noexpand always false.
[splint.git] / test / modifies.c
CommitLineData
885824d3 1# include "modifies.h"
2
3static int mstat;
4static /*@unused@*/ int internalState;
5
6int f3 (int p[])
e5081f8c 7 /*@modifies internalState, fileSystem;@*/ ; /* 1. Modifies list uses ... */
885824d3 8
9int f4 (int p[])
10 /*@modifies p[3];@*/;
11
12int f5 (int fileSystem)
13 /*@modifies fileSystem;@*/ ; /* 2. Modifies list uses fileSystem ... */
14
15int f6 (void);
16
17int f6 (void) /*@modifies mstat;@*/ /* 3. Implementation modifies list for ... */
18{
19 return (mstat++);
20}
21
22int f1 (/*@unused@*/ int p[])
23{
24 mstat++; /* 4. Suspect modification of mstat: mstat++ */
25 return mstat;
26}
27
28int f2 (/*@unused@*/ int p[]) /*@modifies mstat;@*/
29{
30 mstat++;
31 return 3;
32}
33
34int g2 (/*@unused@*/ int p[])
35{
36 return 3;
37} /* 5. Function g2 specified to modify internal state but no internal */
This page took 0.569516 seconds and 5 git commands to generate.