We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12370bc commit 9c0e6baCopy full SHA for 9c0e6ba
c/misra/test/rules/RULE-6-3/test.c
@@ -1,21 +1,21 @@
1
union U1 {
2
- int x; // COMPLIANT
+ int x; // COMPLIANT
3
char y; // COMPLIANT
4
};
5
6
union U2 {
7
- int x: 2; // NON-COMPLIANT
8
- char y; // COMPLIANT
+ int x : 2; // NON-COMPLIANT
+ char y; // COMPLIANT
9
10
11
union U3 {
12
- struct str {
13
- int x: 4; // COMPLIANT
14
- int y: 2; // COMPLIANT
15
- };
+ struct str {
+ int x : 4; // COMPLIANT
+ int y : 2; // COMPLIANT
+ };
16
17
18
union U4 {
19
char x;
20
- int :0; // NON-COMPLIANT
+ int : 0; // NON-COMPLIANT
21
0 commit comments