Skip to content

Commit 5b7118e

Browse files
committed
Rule 2.4: Add a missing test case.
1 parent 79569b6 commit 5b7118e

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,8 @@ void testMacroNameNotUsed() {
7777
{ int x; }
7878

7979
struct s14 PARTIAL; // NON_COMPLIANT - affected by macro, but not fully
80-
// generated, so fair to report as unused
80+
// generated, so fair to report as unused
81+
82+
typedef struct {
83+
int x;
84+
} S15; // COMPLIANT - not a tag

0 commit comments

Comments
 (0)