1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* Rule: DCL22-C
* Source: testcases
* Status: FAIL - Variables should be volatile but are not
*/
/* Case 1: sig_atomic_t without volatile */
sig_atomic_t flag = 0;
void
/* Case 2: Another sig_atomic_t without volatile */
sig_atomic_t shutdown_requested = 0;
void
/* Case 3: Variable modified around external function call */
extern void ;
void
/* Case 4: Another write-call-write pattern */
extern void ;
void