File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
tests/examples/find-global-state Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
22
static int a_global ;
23
23
24
24
struct {
25
- int i ;
25
+ int f ;
26
26
} bar ;
27
27
28
28
extern int foo ;
@@ -35,11 +35,11 @@ int test(int j)
35
35
return i + 1 ;
36
36
}
37
37
38
- int test2 (int j )
38
+ int test2 (int p )
39
39
{
40
- static int i = 0 ;
41
- i += j ;
42
- return j * i ;
40
+ static int q = 0 ;
41
+ q += p ;
42
+ return p * q ;
43
43
}
44
44
45
45
int test3 (int k )
Original file line number Diff line number Diff line change 1
- tests/examples/find-global-state/input.c:40:14: note: global state "int i " defined here
1
+ tests/examples/find-global-state/input.c:40:14: note: global state "int q " defined here
2
2
tests/examples/find-global-state/input.c:26:3: note: global state "struct
3
3
{
4
- int i ;
4
+ int f ;
5
5
} bar" defined here
6
6
tests/examples/find-global-state/input.c:22:12: note: global state "int a_global" defined here
You can’t perform that action at this time.
0 commit comments