Skip to content

Commit 9c0e6ba

Browse files
clang format
1 parent 12370bc commit 9c0e6ba

File tree

1 file changed

+8
-8
lines changed
  • c/misra/test/rules/RULE-6-3

1 file changed

+8
-8
lines changed

c/misra/test/rules/RULE-6-3/test.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
union U1 {
2-
int x; // COMPLIANT
2+
int x; // COMPLIANT
33
char y; // COMPLIANT
44
};
55

66
union U2 {
7-
int x: 2; // NON-COMPLIANT
8-
char y; // COMPLIANT
7+
int x : 2; // NON-COMPLIANT
8+
char y; // COMPLIANT
99
};
1010

1111
union U3 {
12-
struct str {
13-
int x: 4; // COMPLIANT
14-
int y: 2; // COMPLIANT
15-
};
12+
struct str {
13+
int x : 4; // COMPLIANT
14+
int y : 2; // COMPLIANT
15+
};
1616
};
1717

1818
union U4 {
1919
char x;
20-
int :0; // NON-COMPLIANT
20+
int : 0; // NON-COMPLIANT
2121
};

0 commit comments

Comments
 (0)