Some consistency changes to library & headers flags.
[splint-patched.git] / test / argorder5.c
blob4828c7f4a46741b6b738f33a7b67edc000eea15d
1 void test (char *s1, int x);
2 void test3 (int, char *s1);
3 void test2 (/*@only@*/ char *s1, int x);
4 char *copystring (char *s);
6 int f (/*@only@*/ char *name) /*@modifies *name;@*/
8 test (name, f(name)); /* 1. Variable name used after being released */
9 test3 (f(name), name); /* 2. Variable name used after being released */
10 test2 (copystring(name), f(name)); /* 3. Argument 2 modifies *name, used by ... */
11 return 3;