Skip to content

Commit 04c8ba2

Browse files
committed
Rule 2.4: Fix test case compiler issues
This test case had some syntactically invalid C code, and a name clash, which have now been addressed.
1 parent a9cfb8e commit 04c8ba2

File tree

1 file changed

+3
-3
lines changed
  • c/misra/test/rules/RULE-2-4

1 file changed

+3
-3
lines changed

c/misra/test/rules/RULE-2-4/test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ void test() {
2929
int x = state1; // enum access on E1
3030
enum E2 e2;
3131
struct S7 { // NON_COMPLIANT
32-
int x
32+
int x;
3333
} s7;
3434
struct S8 { // COMPLIANT
35-
int x
35+
int x;
3636
} s8;
3737
struct S8 s8_2;
3838

@@ -55,7 +55,7 @@ struct S10 { // NON_COMPLIANT
5555

5656
struct S12 { // COMPLIANT
5757
int x;
58-
} foo(struct S12 s);
58+
} foo2(struct S12 s);
5959

6060
#define STRUCT_MACRO \
6161
struct S13 { \

0 commit comments

Comments
 (0)