Skip to content

Commit 1373292

Browse files
s/NON-COMPLIANT/NON_COMPLIANT in rule-1-4 test.c
1 parent f473520 commit 1373292

File tree

1 file changed

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

1 file changed

+7
-7
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#include <stdalign.h> //COMPLIANT
2-
#include <stdatomic.h> //NON-COMPLIANT
2+
#include <stdatomic.h> //NON_COMPLIANT
33
#include <stdnoreturn.h> //COMPLIANT
4-
#include <threads.h> //NON-COMPLIANT
4+
#include <threads.h> //NON_COMPLIANT
55

6-
#define MACRO(x) _Generic((x), int : 0, long : 1) // NON-COMPLIANT
7-
#define __STDC_WANT_LIB_EXT1__ 1 // NON-COMPLIANT
6+
#define MACRO(x) _Generic((x), int : 0, long : 1) // NON_COMPLIANT
7+
#define __STDC_WANT_LIB_EXT1__ 1 // NON_COMPLIANT
88

99
_Noreturn void f0(); // COMPLIANT
1010

1111
typedef int new_type; // COMPLIANT
12-
typedef _Atomic new_type atomic_new_type; // NON-COMPLIANT
12+
typedef _Atomic new_type atomic_new_type; // NON_COMPLIANT
1313

1414
void f(int p) {
1515
int i0 = _Generic(p, int : 0, long : 1); // COMPLIANT
@@ -21,6 +21,6 @@ void f(int p) {
2121
int a = _Alignof(int); // COMPLIANT
2222
int a1 = alignof(int); // COMPLIANT
2323

24-
static thread_local int i3; // NON-COMPLIANT
25-
static _Thread_local int i4; // NON-COMPLIANT
24+
static thread_local int i3; // NON_COMPLIANT
25+
static _Thread_local int i4; // NON_COMPLIANT
2626
}

0 commit comments

Comments
 (0)