File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
c/cert/test/rules/EXP39-C Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ void test_incompatible_arithmetic() {
17
17
// char may be signed or unsigned, and so is not compatible with either
18
18
char c1 ;
19
19
(signed char * )& c1 ; // NON_COMPLIANT
20
- (unsigned char * )& c1 ; // COMPLIANT - the underlying byte representation is always compatible
20
+ (unsigned char * )& c1 ; // COMPLIANT - the underlying byte representation is
21
+ // always compatible
21
22
(char * )& c1 ; // COMPLIANT - same type
22
23
23
24
// int is defined as signed, so is compatible with all the signed versions
@@ -32,13 +33,13 @@ void test_incompatible_arithmetic() {
32
33
33
34
struct {
34
35
int a ;
35
- } * s1 ;
36
+ } * s1 ;
36
37
struct {
37
38
int a ;
38
- } * s2 ;
39
+ } * s2 ;
39
40
struct S1 {
40
41
int a ;
41
- } * s3 ;
42
+ } * s3 ;
42
43
struct S1 * s4 ;
43
44
44
45
// TODO test across files
You can’t perform that action at this time.
0 commit comments