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.
2 parents f8c9158 + 3e5b02a commit 278e29aCopy full SHA for 278e29a
c/misra/test/rules/RULE-9-3/test.c
@@ -15,7 +15,7 @@ void test() {
15
{0}, [1][0] = 0, 0}; // NON_COMPLIANT - not all elements
16
// initialized with designated initializer
17
18
- int l15[2] = {[1] = 0}; // COMPILANT - sparse matrix initialized with
+ int l15[2] = {[1] = 0}; // COMPLIANT - sparse matrix initialized with
19
// designated initializer
20
int l16[2][2] = {[0] = {0, 1}}; // NON_COMPLIANT - sub-elements not
21
0 commit comments