]> andersk Git - splint.git/blame - test/modtest.c
Fixes for win32
[splint.git] / test / modtest.c
CommitLineData
885824d3 1int x, y, ai[], bi[];
2
3typedef struct _ts { int a; int b; } tst;
4
5tst ts;
6
7tst *tstp;
8
9int g (int a[], int *p)
10{
11 return 7;
12}
13
14int f (int i[], int *j)
15{
16 i[3] = y;
17 j[2] = x;
18 ai[3] = 5;
19 ai[4] = 8; /* not a modification error ai[x'] */
20 i = j;
21 x++;
22 y++;
23 ts.a = i[2];
24 ts.b = tstp->a;
25 tstp->b = 6;
26 g(j, i);
27
28 return 3;
29}
30
31int h(int a[])
32{
33 y++;
34 (void) g(a, &x);
35 return y;
36}
37
This page took 0.627241 seconds and 5 git commands to generate.