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() {
1717 // char may be signed or unsigned, and so is not compatible with either
1818 char c1 ;
1919 (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
2122 (char * )& c1 ; // COMPLIANT - same type
2223
2324 // int is defined as signed, so is compatible with all the signed versions
@@ -32,13 +33,13 @@ void test_incompatible_arithmetic() {
3233
3334struct {
3435 int a ;
35- } * s1 ;
36+ } * s1 ;
3637struct {
3738 int a ;
38- } * s2 ;
39+ } * s2 ;
3940struct S1 {
4041 int a ;
41- } * s3 ;
42+ } * s3 ;
4243struct S1 * s4 ;
4344
4445// TODO test across files
You can’t perform that action at this time.
0 commit comments