Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b87fec5

Browse filesBrowse files
committed
Add test case with atomic types for documentation
1 parent 4dc49a1 commit b87fec5
Copy full SHA for b87fec5

File tree

Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed

‎c/misra/test/rules/RULE-6-1/clang/test.c

Copy file name to clipboardExpand all lines: c/misra/test/rules/RULE-6-1/clang/test.c
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ struct SampleStruct {
1010
signed long x5 : 2; // COMPLIANT
1111
signed char x6 : 2; // COMPLIANT
1212
enum Color x7 : 3; // COMPLIANT
13+
//_Atomic(int) x8 : 2; // NON_COMPLIANT[COMPILER_CHECKED] - atomic types are
14+
//not permitted for bit-fields.
1315
} sample_struct;

‎c/misra/test/rules/RULE-6-1/gcc/test.c

Copy file name to clipboardExpand all lines: c/misra/test/rules/RULE-6-1/gcc/test.c
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ struct SampleStruct {
1010
signed long x5 : 2; // COMPLIANT
1111
signed char x6 : 2; // COMPLIANT
1212
enum Color x7 : 3; // COMPLIANT
13+
//_Atomic(int) x8 : 2; // NON_COMPLIANT[COMPILER_CHECKED] - atomic types are
14+
//not permitted for bit-fields.
1315
} sample_struct;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.