Skip to content

Commit 0e9df1e

Browse files
author
Nikita Kraiouchkine
committed
Update test.c
1 parent 469e42c commit 0e9df1e

File tree

1 file changed

+5
-4
lines changed
  • c/cert/test/rules/EXP39-C

1 file changed

+5
-4
lines changed

c/cert/test/rules/EXP39-C/test.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

3334
struct {
3435
int a;
35-
} * s1;
36+
} *s1;
3637
struct {
3738
int a;
38-
} * s2;
39+
} *s2;
3940
struct S1 {
4041
int a;
41-
} * s3;
42+
} *s3;
4243
struct S1 *s4;
4344

4445
// TODO test across files

0 commit comments

Comments
 (0)