Language 3

Description
Implements Language 3.
Change request type

[ ] Release or process automation (GitHub workflows, internal scripts)
[ ] Internal documentation
[ ] External documentation
[x] Query files (.ql, .qll, .qls or unit tests)
[ ] External scripts (analysis report or other code shipped as part of a release)

Rules with added or modified queries

[ ] No rules added
[x] Queries have been added for the following rules:

[x] RULE-1-2
[x] RULE-1-3

[ ] Queries have been modified for the following rules:

rule number here

Release change checklist
A change note (development_handbook.md#change-notes) is required for any pull request which modifies:

The structure or layout of the release artifacts.
The evaluation performance (memory, execution time) of an existing query.
The results of an existing query in any circumstance.

If you are only adding new rule queries, a change note is not required.
Author: Is a change note required?

[ ] Yes
[x] No

🚨🚨🚨
Reviewer: Confirm that format of shared queries (not the .qll file, the
.ql file that imports it) is valid by running them within VS Code.

[ ] Confirmed

Reviewer: Confirm that either a change note is not required or the change note is required and has been added.

[ ] Confirmed

Query development review checklist
For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:
Author

[ ] Have all the relevant rule package description files been checked in?
[ ] Have you verified that the metadata properties of each new query is set appropriately?
[ ] Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
[ ] Are the alert messages properly formatted and consistent with the style guide?
[ ] Have you run the queries on OpenPilot and verified that the performance and results are acceptable?As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
[ ] Does the query have an appropriate level of in-query comments/documentation?
[ ] Have you considered/identified possible edge cases?
[ ] Does the query not reinvent features in the standard library?
[ ] Can the query be simplified further (not golfed!)

Reviewer

[ ] Have all the relevant rule package description files been checked in?
[ ] Have you verified that the metadata properties of each new query is set appropriately?
[ ] Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
[ ] Are the alert messages properly formatted and consistent with the style guide?
[ ] Have you run the queries on OpenPilot and verified that the performance and results are acceptable?As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
[ ] Does the query have an appropriate level of in-query comments/documentation?
[ ] Have you considered/identified possible edge cases?
[ ] Does the query not reinvent features in the standard library?
[ ] Can the query be simplified further (not golfed!)

🤖 Beep Boop! clang/c/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! clang/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/c/AARCH64LE Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! Matrix Testing for this PR has been completed. If no reports were posted it means this PR does not contain things that need matrix testing!

🤖 Beep Boop! clang/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! gcc/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

QUERY                : LanguageExtensionsShouldNotBeUsed
TEST_DIFFERENCE      :
TEST_PASS            : False
RULE                 : RULE-1-2
PACKAGE              : Language3
COMPILE_ERROR_OUTPUT : [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:57:27] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-22 15:57:27] [build-stderr]  ^~~~~~~
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:57:27] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-22 15:57:27] [build-stderr]  ^~~~~~~
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-22 15:57:27] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:57:27] [build-stderr]    ^~~~~~
                       [2023-03-22 15:57:27] [build-stderr]    feof
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-22 15:57:27] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:57:27] [build-stderr]           ^~~
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-22 15:57:27] [build-stderr]    \
                       [2023-03-22 15:57:27] [build-stderr]
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:57:27] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-22 15:57:27] [build-stderr]  ^~~~
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf35':
                       [2023-03-22 15:57:27] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:296:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                       [2023-03-22 15:57:27] [build-stderr]      printf("");
                       [2023-03-22 15:57:27] [build-stderr]             ^~
                       [2023-03-22 15:57:27] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

SUITE                : MISRA-C-2012
COMPILE_PASS         : False

QUERY                : OccurrenceOfUndefinedBehavior
TEST_DIFFERENCE      :
TEST_PASS            : False
RULE                 : RULE-1-3
PACKAGE              : Language3
COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
SUITE                : MISRA-C-2012
COMPILE_PASS         : False

🤖 Beep Boop! clang/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

COMPILE_ERROR_OUTPUT : [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:68:5: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:57:29] [build-stderr]     z;
                       [2023-03-22 15:57:29] [build-stderr]     ^
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
                       [2023-03-22 15:57:29] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:57:29] [build-stderr]   ^
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression
                       [2023-03-22 15:57:29] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:57:29] [build-stderr]          ^
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:133:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:57:29] [build-stderr]   __real__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:57:29] [build-stderr]   ^       ~~~
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:134:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:57:29] [build-stderr]   __imag__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:57:29] [build-stderr]   ^       ~~~
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:4: warning: backslash and newline separated by space [-Wbackslash-newline-escape]
                       [2023-03-22 15:57:29] [build-stderr]   \
                       [2023-03-22 15:57:29] [build-stderr]    ^
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:268:16: warning: unknown attribute 'access' ignored [-Wunknown-attributes]
                       [2023-03-22 15:57:29] [build-stderr] __attribute__((access(read_only, 1))) int
                       [2023-03-22 15:57:29] [build-stderr]                ^
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:280:18: warning: 'cold' attribute only applies to functions [-Wignored-attributes]
                       [2023-03-22 15:57:29] [build-stderr]   __attribute__((cold, unused)); // NON_COMPLIANT
                       [2023-03-22 15:57:29] [build-stderr]                  ^
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:321:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:57:29] [build-stderr]   __alignof__(gf39v.x); // NON_COMPLIANT
                       [2023-03-22 15:57:29] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:351:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:57:29] [build-stderr]   __builtin_offsetof(struct gf43s, x); // NON_COMPLIANT
                       [2023-03-22 15:57:29] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:368:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 15:57:29] [build-stderr]   __sync_fetch_and_nand(&i, 0); // NON_COMPLIANT
                       [2023-03-22 15:57:29] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 15:57:29] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:374:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 15:57:29] [build-stderr]   __sync_nand_and_fetch(&i, 0); // NON_COMPLIANT
                       [2023-03-22 15:57:29] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 15:57:29] [build-stderr] 11 warnings and 1 error generated.
                       [2023-03-22 15:57:29] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

TEST_PASS            : False
SUITE                : MISRA-C-2012
TEST_DIFFERENCE      :
RULE                 : RULE-1-2
PACKAGE              : Language3
COMPILE_PASS         : False
QUERY                : LanguageExtensionsShouldNotBeUsed

COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
TEST_PASS            : False
SUITE                : MISRA-C-2012
TEST_DIFFERENCE      :
RULE                 : RULE-1-3
PACKAGE              : Language3
COMPILE_PASS         : False
QUERY                : OccurrenceOfUndefinedBehavior

🤖 Beep Boop! clang/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

RULE                 : RULE-1-2
PACKAGE              : Language3
TEST_PASS            : False
QUERY                : LanguageExtensionsShouldNotBeUsed
COMPILE_ERROR_OUTPUT : [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:68:5: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:58:10] [build-stderr]     z;
                       [2023-03-22 15:58:10] [build-stderr]     ^
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
                       [2023-03-22 15:58:10] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:58:10] [build-stderr]   ^
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression
                       [2023-03-22 15:58:10] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:58:10] [build-stderr]          ^
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:133:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:58:10] [build-stderr]   __real__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:58:10] [build-stderr]   ^       ~~~
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:134:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:58:10] [build-stderr]   __imag__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:58:10] [build-stderr]   ^       ~~~
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:4: warning: backslash and newline separated by space [-Wbackslash-newline-escape]
                       [2023-03-22 15:58:10] [build-stderr]   \
                       [2023-03-22 15:58:10] [build-stderr]    ^
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:268:16: warning: unknown attribute 'access' ignored [-Wunknown-attributes]
                       [2023-03-22 15:58:10] [build-stderr] __attribute__((access(read_only, 1))) int
                       [2023-03-22 15:58:10] [build-stderr]                ^
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:280:18: warning: 'cold' attribute only applies to functions [-Wignored-attributes]
                       [2023-03-22 15:58:10] [build-stderr]   __attribute__((cold, unused)); // NON_COMPLIANT
                       [2023-03-22 15:58:10] [build-stderr]                  ^
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:321:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:58:10] [build-stderr]   __alignof__(gf39v.x); // NON_COMPLIANT
                       [2023-03-22 15:58:10] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:351:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:58:10] [build-stderr]   __builtin_offsetof(struct gf43s, x); // NON_COMPLIANT
                       [2023-03-22 15:58:10] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:368:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 15:58:10] [build-stderr]   __sync_fetch_and_nand(&i, 0); // NON_COMPLIANT
                       [2023-03-22 15:58:10] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 15:58:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:374:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 15:58:10] [build-stderr]   __sync_nand_and_fetch(&i, 0); // NON_COMPLIANT
                       [2023-03-22 15:58:10] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 15:58:10] [build-stderr] 11 warnings and 1 error generated.
                       [2023-03-22 15:58:10] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

COMPILE_PASS         : False
TEST_DIFFERENCE      :
SUITE                : MISRA-C-2012

RULE                 : RULE-1-3
PACKAGE              : Language3
TEST_PASS            : False
QUERY                : OccurrenceOfUndefinedBehavior
COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
COMPILE_PASS         : False
TEST_DIFFERENCE      :
SUITE                : MISRA-C-2012

🤖 Beep Boop! gcc/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

TEST_DIFFERENCE      :
PACKAGE              : Language3
COMPILE_PASS         : False
QUERY                : LanguageExtensionsShouldNotBeUsed
TEST_PASS            : False
COMPILE_ERROR_OUTPUT : [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:58:12] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-22 15:58:12] [build-stderr]  ^~~~~~~
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:58:12] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-22 15:58:12] [build-stderr]  ^~~~~~~
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-22 15:58:12] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:58:12] [build-stderr]    ^~~~~~
                       [2023-03-22 15:58:12] [build-stderr]    feof
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-22 15:58:12] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:58:12] [build-stderr]           ^~~
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-22 15:58:12] [build-stderr]    \
                       [2023-03-22 15:58:12] [build-stderr]
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:58:12] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-22 15:58:12] [build-stderr]  ^~~~
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf35':
                       [2023-03-22 15:58:12] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:296:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                       [2023-03-22 15:58:12] [build-stderr]      printf("");
                       [2023-03-22 15:58:12] [build-stderr]             ^~
                       [2023-03-22 15:58:12] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

SUITE                : MISRA-C-2012
RULE                 : RULE-1-2

TEST_DIFFERENCE      :
PACKAGE              : Language3
COMPILE_PASS         : False
QUERY                : OccurrenceOfUndefinedBehavior
TEST_PASS            : False
COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
SUITE                : MISRA-C-2012
RULE                 : RULE-1-3

🤖 Beep Boop! gcc/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/cpp/AARCH64LE Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! Matrix Testing for this PR has been completed. If no reports were posted it means this PR does not contain things that need matrix testing!

🤖 Beep Boop! clang/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

PACKAGE              : Language3
TEST_DIFFERENCE      :
QUERY                : LanguageExtensionsShouldNotBeUsed
TEST_PASS            : False
RULE                 : RULE-1-2
SUITE                : MISRA-C-2012
COMPILE_ERROR_OUTPUT : [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:68:5: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:13] [build-stderr]     z;
                       [2023-03-22 15:59:13] [build-stderr]     ^
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
                       [2023-03-22 15:59:13] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:13] [build-stderr]   ^
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression
                       [2023-03-22 15:59:13] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:13] [build-stderr]          ^
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:133:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:13] [build-stderr]   __real__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:13] [build-stderr]   ^       ~~~
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:134:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:13] [build-stderr]   __imag__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:13] [build-stderr]   ^       ~~~
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:4: warning: backslash and newline separated by space [-Wbackslash-newline-escape]
                       [2023-03-22 15:59:13] [build-stderr]   \
                       [2023-03-22 15:59:13] [build-stderr]    ^
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:268:16: warning: unknown attribute 'access' ignored [-Wunknown-attributes]
                       [2023-03-22 15:59:13] [build-stderr] __attribute__((access(read_only, 1))) int
                       [2023-03-22 15:59:13] [build-stderr]                ^
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:280:18: warning: 'cold' attribute only applies to functions [-Wignored-attributes]
                       [2023-03-22 15:59:13] [build-stderr]   __attribute__((cold, unused)); // NON_COMPLIANT
                       [2023-03-22 15:59:13] [build-stderr]                  ^
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:321:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:13] [build-stderr]   __alignof__(gf39v.x); // NON_COMPLIANT
                       [2023-03-22 15:59:13] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:351:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:13] [build-stderr]   __builtin_offsetof(struct gf43s, x); // NON_COMPLIANT
                       [2023-03-22 15:59:13] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:368:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 15:59:13] [build-stderr]   __sync_fetch_and_nand(&i, 0); // NON_COMPLIANT
                       [2023-03-22 15:59:13] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 15:59:13] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:374:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 15:59:13] [build-stderr]   __sync_nand_and_fetch(&i, 0); // NON_COMPLIANT
                       [2023-03-22 15:59:13] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 15:59:13] [build-stderr] 11 warnings and 1 error generated.
                       [2023-03-22 15:59:13] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

COMPILE_PASS         : False

PACKAGE              : Language3
TEST_DIFFERENCE      :
QUERY                : OccurrenceOfUndefinedBehavior
TEST_PASS            : False
RULE                 : RULE-1-3
SUITE                : MISRA-C-2012
COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
COMPILE_PASS         : False

🤖 Beep Boop! clang/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

SUITE                : MISRA-C-2012
TEST_DIFFERENCE      :
PACKAGE              : Language3
COMPILE_PASS         : False
TEST_PASS            : False
RULE                 : RULE-1-2
COMPILE_ERROR_OUTPUT : [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:68:5: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:16] [build-stderr]     z;
                       [2023-03-22 15:59:16] [build-stderr]     ^
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
                       [2023-03-22 15:59:16] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:16] [build-stderr]   ^
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression
                       [2023-03-22 15:59:16] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:16] [build-stderr]          ^
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:133:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:16] [build-stderr]   __real__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:16] [build-stderr]   ^       ~~~
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:134:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:16] [build-stderr]   __imag__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:16] [build-stderr]   ^       ~~~
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:4: warning: backslash and newline separated by space [-Wbackslash-newline-escape]
                       [2023-03-22 15:59:16] [build-stderr]   \
                       [2023-03-22 15:59:16] [build-stderr]    ^
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:268:16: warning: unknown attribute 'access' ignored [-Wunknown-attributes]
                       [2023-03-22 15:59:16] [build-stderr] __attribute__((access(read_only, 1))) int
                       [2023-03-22 15:59:16] [build-stderr]                ^
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:280:18: warning: 'cold' attribute only applies to functions [-Wignored-attributes]
                       [2023-03-22 15:59:16] [build-stderr]   __attribute__((cold, unused)); // NON_COMPLIANT
                       [2023-03-22 15:59:16] [build-stderr]                  ^
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:321:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:16] [build-stderr]   __alignof__(gf39v.x); // NON_COMPLIANT
                       [2023-03-22 15:59:16] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:351:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 15:59:16] [build-stderr]   __builtin_offsetof(struct gf43s, x); // NON_COMPLIANT
                       [2023-03-22 15:59:16] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:368:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 15:59:16] [build-stderr]   __sync_fetch_and_nand(&i, 0); // NON_COMPLIANT
                       [2023-03-22 15:59:16] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:374:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 15:59:16] [build-stderr]   __sync_nand_and_fetch(&i, 0); // NON_COMPLIANT
                       [2023-03-22 15:59:16] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 15:59:16] [build-stderr] 11 warnings and 1 error generated.
                       [2023-03-22 15:59:17] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

QUERY                : LanguageExtensionsShouldNotBeUsed

SUITE                : MISRA-C-2012
TEST_DIFFERENCE      :
PACKAGE              : Language3
COMPILE_PASS         : False
TEST_PASS            : False
RULE                 : RULE-1-3
COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
QUERY                : OccurrenceOfUndefinedBehavior

🤖 Beep Boop! gcc/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

COMPILE_PASS         : False
QUERY                : LanguageExtensionsShouldNotBeUsed
PACKAGE              : Language3
RULE                 : RULE-1-2
SUITE                : MISRA-C-2012
TEST_PASS            : False
COMPILE_ERROR_OUTPUT : [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:59:16] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-22 15:59:16] [build-stderr]  ^~~~~~~
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:59:16] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-22 15:59:16] [build-stderr]  ^~~~~~~
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-22 15:59:16] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:16] [build-stderr]    ^~~~~~
                       [2023-03-22 15:59:16] [build-stderr]    feof
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-22 15:59:16] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 15:59:16] [build-stderr]           ^~~
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-22 15:59:16] [build-stderr]    \
                       [2023-03-22 15:59:16] [build-stderr]
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-22 15:59:16] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-22 15:59:16] [build-stderr]  ^~~~
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf35':
                       [2023-03-22 15:59:16] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:296:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                       [2023-03-22 15:59:16] [build-stderr]      printf("");
                       [2023-03-22 15:59:16] [build-stderr]             ^~
                       [2023-03-22 15:59:17] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

TEST_DIFFERENCE      :

COMPILE_PASS         : False
QUERY                : OccurrenceOfUndefinedBehavior
PACKAGE              : Language3
RULE                 : RULE-1-3
SUITE                : MISRA-C-2012
TEST_PASS            : False
COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
TEST_DIFFERENCE      :

🤖 Beep Boop! clang/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! clang/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! Matrix Testing for this PR has been completed. If no reports were posted it means this PR does not contain things that need matrix testing!

🤖 Beep Boop! qcc/cpp/AARCH64LE Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/c/AARCH64LE Matrix Testing for this PR has been completed. See below for the results!

COMPILE_ERROR_OUTPUT : [2023-03-22 16:01:45] [build-stderr] checkout failed: Licensed number of users already reached.
                       [2023-03-22 16:01:45] [build-stderr] Feature:       P10F2048
                       [2023-03-22 16:01:45] [build-stderr] License path<EMAIL_ADDRESS>                       [2023-03-22 16:01:45] [build-stderr] FlexNet Licensing error:-4,132
                       [2023-03-22 16:01:45] [build-stdout] license check failed
                       [2023-03-22 16:01:49] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, qcc, -V8.3.0, -Wc,-fsyntax-only, -c, -nopipe, -std=c11, -Vgcc_ntoaarch64le, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

TEST_DIFFERENCE      :
COMPILE_PASS         : False
SUITE                : MISRA-C-2012
RULE                 : RULE-1-2
PACKAGE              : Language3
TEST_PASS            : False
QUERY                : LanguageExtensionsShouldNotBeUsed

COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
TEST_DIFFERENCE      :
COMPILE_PASS         : False
SUITE                : MISRA-C-2012
RULE                 : RULE-1-3
PACKAGE              : Language3
TEST_PASS            : False
QUERY                : OccurrenceOfUndefinedBehavior

🤖 Beep Boop! Matrix Testing for this PR has been completed. If no reports were posted it means this PR does not contain things that need matrix testing!

🤖 Beep Boop! qcc/c/AARCH64LE Matrix Testing for this PR has been completed. See below for the results!

RULE                 : RULE-1-2
TEST_PASS            : False
TEST_DIFFERENCE      :
COMPILE_ERROR_OUTPUT : [2023-03-22 16:03:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 16:03:08] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-22 16:03:08] [build-stderr]  ^~~~~~~
                       [2023-03-22 16:03:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 16:03:08] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-22 16:03:08] [build-stderr]  ^~~~~~~
                       [2023-03-22 16:03:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-22 16:03:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-22 16:03:08] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 16:03:08] [build-stderr]    ^~~~~~
                       [2023-03-22 16:03:08] [build-stderr]    feof
                       [2023-03-22 16:03:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-22 16:03:08] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 16:03:08] [build-stderr]           ^~~
                       [2023-03-22 16:03:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-22 16:03:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-22 16:03:08] [build-stderr]    \
                       [2023-03-22 16:03:08] [build-stderr]
                       [2023-03-22 16:03:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-22 16:03:08] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-22 16:03:08] [build-stderr]  ^~~~
                       [2023-03-22 16:03:08] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, qcc, -V8.3.0, -Wc,-fsyntax-only, -c, -nopipe, -std=c11, -Vgcc_ntoaarch64le, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

QUERY                : LanguageExtensionsShouldNotBeUsed
COMPILE_PASS         : False
PACKAGE              : Language3
SUITE                : MISRA-C-2012

RULE                 : RULE-1-3
TEST_PASS            : False
TEST_DIFFERENCE      :
COMPILE_ERROR_OUTPUT : Exception calling "Join" with "2" argument(s): "Value cannot be null. (Parameter 'values')"
QUERY                : OccurrenceOfUndefinedBehavior
COMPILE_PASS         : False
PACKAGE              : Language3
SUITE                : MISRA-C-2012

🤖 Beep Boop! clang/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

COMPILE_ERROR_OUTPUT : [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:68:5: warning: expression result unused [-Wunused-value]
                       [2023-03-22 21:08:36] [build-stderr]     z;
                       [2023-03-22 21:08:36] [build-stderr]     ^
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
                       [2023-03-22 21:08:36] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 21:08:36] [build-stderr]   ^
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression
                       [2023-03-22 21:08:36] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 21:08:36] [build-stderr]          ^
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:133:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 21:08:36] [build-stderr]   __real__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 21:08:36] [build-stderr]   ^       ~~~
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:134:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 21:08:36] [build-stderr]   __imag__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 21:08:36] [build-stderr]   ^       ~~~
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:4: warning: backslash and newline separated by space [-Wbackslash-newline-escape]
                       [2023-03-22 21:08:36] [build-stderr]   \
                       [2023-03-22 21:08:36] [build-stderr]    ^
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:268:16: warning: unknown attribute 'access' ignored [-Wunknown-attributes]
                       [2023-03-22 21:08:36] [build-stderr] __attribute__((access(read_only, 1))) int
                       [2023-03-22 21:08:36] [build-stderr]                ^
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:280:18: warning: 'cold' attribute only applies to functions [-Wignored-attributes]
                       [2023-03-22 21:08:36] [build-stderr]   __attribute__((cold, unused)); // NON_COMPLIANT
                       [2023-03-22 21:08:36] [build-stderr]                  ^
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:321:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 21:08:36] [build-stderr]   __alignof__(gf39v.x); // NON_COMPLIANT
                       [2023-03-22 21:08:36] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:351:3: warning: expression result unused [-Wunused-value]
                       [2023-03-22 21:08:36] [build-stderr]   __builtin_offsetof(struct gf43s, x); // NON_COMPLIANT
                       [2023-03-22 21:08:36] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:368:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 21:08:36] [build-stderr]   __sync_fetch_and_nand(&i, 0); // NON_COMPLIANT
                       [2023-03-22 21:08:36] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 21:08:36] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:374:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-22 21:08:36] [build-stderr]   __sync_nand_and_fetch(&i, 0); // NON_COMPLIANT
                       [2023-03-22 21:08:36] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-22 21:08:36] [build-stderr] 11 warnings and 1 error generated.
                       [2023-03-22 21:08:36] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

PACKAGE              : Language3
TEST_DIFFERENCE      :
SUITE                : MISRA-C-2012
RULE                 : RULE-1-2
COMPILE_PASS         : False
QUERY                : LanguageExtensionsShouldNotBeUsed
TEST_PASS            : False

COMPILE_ERROR_OUTPUT : [2023-03-22 21:08:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-3/test.c:1:1: error: 'main' must return 'int'
                       [2023-03-22 21:08:38] [build-stderr] void main(void) { // COMPLIANT
                       [2023-03-22 21:08:38] [build-stderr] ^~~~
                       [2023-03-22 21:08:38] [build-stderr] int
                       [2023-03-22 21:08:38] [build-stderr] 1 error generated.
                       [2023-03-22 21:08:39] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-3/test.c])

PACKAGE              : Language3
TEST_DIFFERENCE      :
SUITE                : MISRA-C-2012
RULE                 : RULE-1-3
COMPILE_PASS         : False
QUERY                : OccurrenceOfUndefinedBehavior
TEST_PASS            : False

🤖 Beep Boop! clang/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! gcc/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

PACKAGE              : Language3
TEST_PASS            : False
COMPILE_PASS         : False
SUITE                : MISRA-C-2012
QUERY                : LanguageExtensionsShouldNotBeUsed
COMPILE_ERROR_OUTPUT : [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 21:08:41] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-22 21:08:41] [build-stderr]  ^~~~~~~
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 21:08:41] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-22 21:08:41] [build-stderr]  ^~~~~~~
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-22 21:08:41] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 21:08:41] [build-stderr]    ^~~~~~
                       [2023-03-22 21:08:41] [build-stderr]    feof
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-22 21:08:41] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 21:08:41] [build-stderr]           ^~~
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-22 21:08:41] [build-stderr]    \
                       [2023-03-22 21:08:41] [build-stderr]
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-22 21:08:41] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-22 21:08:41] [build-stderr]  ^~~~
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf35':
                       [2023-03-22 21:08:41] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:296:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                       [2023-03-22 21:08:41] [build-stderr]      printf("");
                       [2023-03-22 21:08:41] [build-stderr]             ^~
                       [2023-03-22 21:08:41] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

RULE                 : RULE-1-2
TEST_DIFFERENCE      :

PACKAGE              : Language3
TEST_PASS            : True
COMPILE_PASS         : True
SUITE                : MISRA-C-2012
QUERY                : OccurrenceOfUndefinedBehavior
COMPILE_ERROR_OUTPUT :
RULE                 : RULE-1-3
TEST_DIFFERENCE      :

🤖 Beep Boop! gcc/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/cpp/AARCH64LE Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/c/AARCH64LE Matrix Testing for this PR has been completed. See below for the results!

COMPILE_ERROR_OUTPUT : [2023-03-22 21:13:28] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 21:13:28] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-22 21:13:28] [build-stderr]  ^~~~~~~
                       [2023-03-22 21:13:28] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-22 21:13:28] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-22 21:13:28] [build-stderr]  ^~~~~~~
                       [2023-03-22 21:13:28] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-22 21:13:28] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-22 21:13:28] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 21:13:28] [build-stderr]    ^~~~~~
                       [2023-03-22 21:13:28] [build-stderr]    feof
                       [2023-03-22 21:13:28] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-22 21:13:28] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-22 21:13:28] [build-stderr]           ^~~
                       [2023-03-22 21:13:28] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-22 21:13:28] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-22 21:13:28] [build-stderr]    \
                       [2023-03-22 21:13:28] [build-stderr]
                       [2023-03-22 21:13:28] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-22 21:13:28] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-22 21:13:28] [build-stderr]  ^~~~
                       [2023-03-22 21:13:29] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, qcc, -V8.3.0, -Wc,-fsyntax-only, -c, -nopipe, -std=c11, -Vgcc_ntoaarch64le, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

COMPILE_PASS         : False
TEST_PASS            : False
QUERY                : LanguageExtensionsShouldNotBeUsed
PACKAGE              : Language3
RULE                 : RULE-1-2
SUITE                : MISRA-C-2012
TEST_DIFFERENCE      :

COMPILE_ERROR_OUTPUT :
COMPILE_PASS         : True
TEST_PASS            : True
QUERY                : OccurrenceOfUndefinedBehavior
PACKAGE              : Language3
RULE                 : RULE-1-3
SUITE                : MISRA-C-2012
TEST_DIFFERENCE      :

🤖 Beep Boop! Matrix Testing for this PR has been completed. If no reports were posted it means this PR does not contain things that need matrix testing!

/test-performance

🤖 Beep Boop! gcc/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

SUITE                : MISRA-C-2012
TEST_PASS            : False
COMPILE_PASS         : False
RULE                 : RULE-1-2
PACKAGE              : Language3
TEST_DIFFERENCE      :
QUERY                : LanguageExtensionsShouldNotBeUsed
COMPILE_ERROR_OUTPUT : [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 17:44:25] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-23 17:44:25] [build-stderr]  ^~~~~~~
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 17:44:25] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-23 17:44:25] [build-stderr]  ^~~~~~~
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-23 17:44:25] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 17:44:25] [build-stderr]    ^~~~~~
                       [2023-03-23 17:44:25] [build-stderr]    feof
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-23 17:44:25] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 17:44:25] [build-stderr]           ^~~
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-23 17:44:25] [build-stderr]    \
                       [2023-03-23 17:44:25] [build-stderr]
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-23 17:44:25] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-23 17:44:25] [build-stderr]  ^~~~
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf35':
                       [2023-03-23 17:44:25] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:296:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                       [2023-03-23 17:44:25] [build-stderr]      printf("");
                       [2023-03-23 17:44:25] [build-stderr]             ^~
                       [2023-03-23 17:44:25] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

SUITE                : MISRA-C-2012
TEST_PASS            : True
COMPILE_PASS         : True
RULE                 : RULE-1-3
PACKAGE              : Language3
TEST_DIFFERENCE      :
QUERY                : OccurrenceOfUndefinedBehavior
COMPILE_ERROR_OUTPUT :

🤖 Beep Boop! gcc/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/cpp/AARCH64LE Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/c/AARCH64LE Matrix Testing for this PR has been completed. See below for the results!

QUERY                : LanguageExtensionsShouldNotBeUsed
COMPILE_ERROR_OUTPUT : [2023-03-23 17:48:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 17:48:37] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-23 17:48:37] [build-stderr]  ^~~~~~~
                       [2023-03-23 17:48:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 17:48:37] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-23 17:48:37] [build-stderr]  ^~~~~~~
                       [2023-03-23 17:48:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-23 17:48:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-23 17:48:37] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 17:48:37] [build-stderr]    ^~~~~~
                       [2023-03-23 17:48:37] [build-stderr]    feof
                       [2023-03-23 17:48:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-23 17:48:37] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 17:48:37] [build-stderr]           ^~~
                       [2023-03-23 17:48:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-23 17:48:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-23 17:48:37] [build-stderr]    \
                       [2023-03-23 17:48:37] [build-stderr]
                       [2023-03-23 17:48:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-23 17:48:37] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-23 17:48:37] [build-stderr]  ^~~~
                       [2023-03-23 17:48:37] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, qcc, -V8.3.0, -Wc,-fsyntax-only, -c, -nopipe, -std=c11, -Vgcc_ntoaarch64le, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

PACKAGE              : Language3
RULE                 : RULE-1-2
TEST_PASS            : False
COMPILE_PASS         : False
SUITE                : MISRA-C-2012
TEST_DIFFERENCE      :

QUERY                : OccurrenceOfUndefinedBehavior
COMPILE_ERROR_OUTPUT :
PACKAGE              : Language3
RULE                 : RULE-1-3
TEST_PASS            : True
COMPILE_PASS         : True
SUITE                : MISRA-C-2012
TEST_DIFFERENCE      :

🏁 Beep Boop! Performance testing complete! See below for performance of the last 3 runs vs your PR. Times are based on predicate performance. You can find full graphs and stats in the PR that was created for this test in the release engineering repo.

 See below for the results!

COMPILE_ERROR_OUTPUT : [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:68:5: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:34:35] [build-stderr]     z;
                       [2023-03-23 20:34:35] [build-stderr]     ^
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
                       [2023-03-23 20:34:35] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:34:35] [build-stderr]   ^
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression
                       [2023-03-23 20:34:35] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:34:35] [build-stderr]          ^
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:133:3: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:34:35] [build-stderr]   __real__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:34:35] [build-stderr]   ^       ~~~
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:134:3: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:34:35] [build-stderr]   __imag__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:34:35] [build-stderr]   ^       ~~~
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:4: warning: backslash and newline separated by space [-Wbackslash-newline-escape]
                       [2023-03-23 20:34:35] [build-stderr]   \
                       [2023-03-23 20:34:35] [build-stderr]    ^
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:268:16: warning: unknown attribute 'access' ignored [-Wunknown-attributes]
                       [2023-03-23 20:34:35] [build-stderr] __attribute__((access(read_only, 1))) int
                       [2023-03-23 20:34:35] [build-stderr]                ^
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:280:18: warning: 'cold' attribute only applies to functions [-Wignored-attributes]
                       [2023-03-23 20:34:35] [build-stderr]   __attribute__((cold, unused)); // NON_COMPLIANT
                       [2023-03-23 20:34:35] [build-stderr]                  ^
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:321:3: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:34:35] [build-stderr]   __alignof__(gf39v.x); // NON_COMPLIANT
                       [2023-03-23 20:34:35] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:351:3: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:34:35] [build-stderr]   __builtin_offsetof(struct gf43s, x); // NON_COMPLIANT
                       [2023-03-23 20:34:35] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:368:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-23 20:34:35] [build-stderr]   __sync_fetch_and_nand(&i, 0); // NON_COMPLIANT
                       [2023-03-23 20:34:35] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-23 20:34:35] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:374:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-23 20:34:35] [build-stderr]   __sync_nand_and_fetch(&i, 0); // NON_COMPLIANT
                       [2023-03-23 20:34:35] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-23 20:34:35] [build-stderr] 11 warnings and 1 error generated.
                       [2023-03-23 20:34:36] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

COMPILE_PASS         : False
SUITE                : MISRA-C-2012
TEST_PASS            : False
QUERY                : LanguageExtensionsShouldNotBeUsed
PACKAGE              : Language3
RULE                 : RULE-1-2
TEST_DIFFERENCE      :

COMPILE_ERROR_OUTPUT : [2023-03-23 20:34:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-3/test.c:1:1: error: 'main' must return 'int'
                       [2023-03-23 20:34:38] [build-stderr] void main(void) { // COMPLIANT
                       [2023-03-23 20:34:38] [build-stderr] ^~~~
                       [2023-03-23 20:34:38] [build-stderr] int
                       [2023-03-23 20:34:38] [build-stderr] 1 error generated.
                       [2023-03-23 20:34:38] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-3/test.c])

COMPILE_PASS         : False
SUITE                : MISRA-C-2012
TEST_PASS            : False
QUERY                : OccurrenceOfUndefinedBehavior
PACKAGE              : Language3
RULE                 : RULE-1-3
TEST_DIFFERENCE      :

🤖 Beep Boop! gcc/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

RULE                 : RULE-1-2
QUERY                : LanguageExtensionsShouldNotBeUsed
TEST_PASS            : False
PACKAGE              : Language3
COMPILE_PASS         : False
TEST_DIFFERENCE      :
SUITE                : MISRA-C-2012
COMPILE_ERROR_OUTPUT : [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:34:37] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-23 20:34:37] [build-stderr]  ^~~~~~~
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:34:37] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-23 20:34:37] [build-stderr]  ^~~~~~~
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-23 20:34:37] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:34:37] [build-stderr]    ^~~~~~
                       [2023-03-23 20:34:37] [build-stderr]    feof
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-23 20:34:37] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:34:37] [build-stderr]           ^~~
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-23 20:34:37] [build-stderr]    \
                       [2023-03-23 20:34:37] [build-stderr]
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:34:37] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-23 20:34:37] [build-stderr]  ^~~~
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf35':
                       [2023-03-23 20:34:37] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:296:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                       [2023-03-23 20:34:37] [build-stderr]      printf("");
                       [2023-03-23 20:34:37] [build-stderr]             ^~
                       [2023-03-23 20:34:37] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

RULE                 : RULE-1-3
QUERY                : OccurrenceOfUndefinedBehavior
TEST_PASS            : True
PACKAGE              : Language3
COMPILE_PASS         : True
TEST_DIFFERENCE      :
SUITE                : MISRA-C-2012
COMPILE_ERROR_OUTPUT :

🤖 Beep Boop! clang/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! gcc/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/cpp/AARCH64LE Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/c/AARCH64LE Matrix Testing for this PR has been completed. See below for the results!

TEST_PASS            : False
TEST_DIFFERENCE      :
RULE                 : RULE-1-2
PACKAGE              : Language3
QUERY                : LanguageExtensionsShouldNotBeUsed
SUITE                : MISRA-C-2012
COMPILE_ERROR_OUTPUT : [2023-03-23 20:39:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:39:17] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-23 20:39:17] [build-stderr]  ^~~~~~~
                       [2023-03-23 20:39:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:39:17] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-23 20:39:17] [build-stderr]  ^~~~~~~
                       [2023-03-23 20:39:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-23 20:39:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-23 20:39:17] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:39:17] [build-stderr]    ^~~~~~
                       [2023-03-23 20:39:17] [build-stderr]    feof
                       [2023-03-23 20:39:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-23 20:39:17] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:39:17] [build-stderr]           ^~~
                       [2023-03-23 20:39:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-23 20:39:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-23 20:39:17] [build-stderr]    \
                       [2023-03-23 20:39:17] [build-stderr]
                       [2023-03-23 20:39:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:39:17] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-23 20:39:17] [build-stderr]  ^~~~
                       [2023-03-23 20:39:18] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, qcc, -V8.3.0, -Wc,-fsyntax-only, -c, -nopipe, -std=c11, -Vgcc_ntoaarch64le, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

COMPILE_PASS         : False

TEST_PASS            : True
TEST_DIFFERENCE      :
RULE                 : RULE-1-3
PACKAGE              : Language3
QUERY                : OccurrenceOfUndefinedBehavior
SUITE                : MISRA-C-2012
COMPILE_ERROR_OUTPUT :
COMPILE_PASS         : True

🤖 Beep Boop! Matrix Testing for this PR has been completed. If no reports were posted it means this PR does not contain things that need matrix testing!

🤖 Beep Boop! clang/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

TEST_PASS            : False
PACKAGE              : Language3
TEST_DIFFERENCE      :
COMPILE_ERROR_OUTPUT : [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:68:5: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:43:08] [build-stderr]     z;
                       [2023-03-23 20:43:08] [build-stderr]     ^
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
                       [2023-03-23 20:43:08] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:43:08] [build-stderr]   ^
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression
                       [2023-03-23 20:43:08] [build-stderr]   typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:43:08] [build-stderr]          ^
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:133:3: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:43:08] [build-stderr]   __real__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:43:08] [build-stderr]   ^       ~~~
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:134:3: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:43:08] [build-stderr]   __imag__(0); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:43:08] [build-stderr]   ^       ~~~
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:4: warning: backslash and newline separated by space [-Wbackslash-newline-escape]
                       [2023-03-23 20:43:08] [build-stderr]   \
                       [2023-03-23 20:43:08] [build-stderr]    ^
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:268:16: warning: unknown attribute 'access' ignored [-Wunknown-attributes]
                       [2023-03-23 20:43:08] [build-stderr] __attribute__((access(read_only, 1))) int
                       [2023-03-23 20:43:08] [build-stderr]                ^
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:280:18: warning: 'cold' attribute only applies to functions [-Wignored-attributes]
                       [2023-03-23 20:43:08] [build-stderr]   __attribute__((cold, unused)); // NON_COMPLIANT
                       [2023-03-23 20:43:08] [build-stderr]                  ^
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:321:3: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:43:08] [build-stderr]   __alignof__(gf39v.x); // NON_COMPLIANT
                       [2023-03-23 20:43:08] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:351:3: warning: expression result unused [-Wunused-value]
                       [2023-03-23 20:43:08] [build-stderr]   __builtin_offsetof(struct gf43s, x); // NON_COMPLIANT
                       [2023-03-23 20:43:08] [build-stderr]   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:368:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-23 20:43:08] [build-stderr]   __sync_fetch_and_nand(&i, 0); // NON_COMPLIANT
                       [2023-03-23 20:43:08] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:374:30: warning: the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here [-Wsync-fetch-and-nand-semantics-changed]
                       [2023-03-23 20:43:08] [build-stderr]   __sync_nand_and_fetch(&i, 0); // NON_COMPLIANT
                       [2023-03-23 20:43:08] [build-stderr]   ~~~~~~~~~~~~~~~~~~~~~      ^
                       [2023-03-23 20:43:08] [build-stderr] 11 warnings and 1 error generated.
                       [2023-03-23 20:43:08] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

SUITE                : MISRA-C-2012
COMPILE_PASS         : False
QUERY                : LanguageExtensionsShouldNotBeUsed
RULE                 : RULE-1-2

TEST_PASS            : False
PACKAGE              : Language3
TEST_DIFFERENCE      :
COMPILE_ERROR_OUTPUT : [2023-03-23 20:43:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-3/test.c:1:1: error: 'main' must return 'int'
                       [2023-03-23 20:43:10] [build-stderr] void main(void) { // COMPLIANT
                       [2023-03-23 20:43:10] [build-stderr] ^~~~
                       [2023-03-23 20:43:10] [build-stderr] int
                       [2023-03-23 20:43:10] [build-stderr] 1 error generated.
                       [2023-03-23 20:43:11] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-3/test.c])

SUITE                : MISRA-C-2012
COMPILE_PASS         : False
QUERY                : OccurrenceOfUndefinedBehavior
RULE                 : RULE-1-3

🤖 Beep Boop! gcc/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! clang/cpp/X86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! qcc/cpp/AARCH64LE Matrix Testing for this PR has been completed but I didn't find anything to test!

🤖 Beep Boop! gcc/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

COMPILE_ERROR_OUTPUT : [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:43:08] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-23 20:43:08] [build-stderr]  ^~~~~~~
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:43:08] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-23 20:43:08] [build-stderr]  ^~~~~~~
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-23 20:43:08] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:43:08] [build-stderr]    ^~~~~~
                       [2023-03-23 20:43:08] [build-stderr]    feof
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-23 20:43:08] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:43:08] [build-stderr]           ^~~
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-23 20:43:08] [build-stderr]    \
                       [2023-03-23 20:43:08] [build-stderr]
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:43:08] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-23 20:43:08] [build-stderr]  ^~~~
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf35':
                       [2023-03-23 20:43:08] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:296:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                       [2023-03-23 20:43:08] [build-stderr]      printf("");
                       [2023-03-23 20:43:08] [build-stderr]             ^~
                       [2023-03-23 20:43:09] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

TEST_PASS            : False
COMPILE_PASS         : False
SUITE                : MISRA-C-2012
RULE                 : RULE-1-2
TEST_DIFFERENCE      :
QUERY                : LanguageExtensionsShouldNotBeUsed
PACKAGE              : Language3

COMPILE_ERROR_OUTPUT :
TEST_PASS            : True
COMPILE_PASS         : True
SUITE                : MISRA-C-2012
RULE                 : RULE-1-3
TEST_DIFFERENCE      :
QUERY                : OccurrenceOfUndefinedBehavior
PACKAGE              : Language3

🤖 Beep Boop! qcc/c/AARCH64LE Matrix Testing for this PR has been completed. See below for the results!

COMPILE_PASS         : False
COMPILE_ERROR_OUTPUT : [2023-03-23 20:45:04] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:55:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:45:04] [build-stderr]  typedef float float4 __attribute__((ext_vector_type(4)));       // NON_COMPLIANT
                       [2023-03-23 20:45:04] [build-stderr]  ^~~~~~~
                       [2023-03-23 20:45:04] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:56:1: warning: 'ext_vector_type' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:45:04] [build-stderr]  typedef float float2 __attribute__((ext_vector_type(2)));       // NON_COMPLIANT
                       [2023-03-23 20:45:04] [build-stderr]  ^~~~~~~
                       [2023-03-23 20:45:04] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: In function 'gf8':
                       [2023-03-23 20:45:04] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:3: warning: implicit declaration of function 'typeof'; did you mean 'feof'? [-Wimplicit-function-declaration]
                       [2023-03-23 20:45:04] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:45:04] [build-stderr]    ^~~~~~
                       [2023-03-23 20:45:04] [build-stderr]    feof
                       [2023-03-23 20:45:04] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:118:10: error: expected expression before 'int'
                       [2023-03-23 20:45:04] [build-stderr]    typeof(int *); // NON_COMPLIANT[FALSE_NEGATIVE]
                       [2023-03-23 20:45:04] [build-stderr]           ^~~
                       [2023-03-23 20:45:04] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c: At top level:
                       [2023-03-23 20:45:04] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:201:3: warning: backslash and newline separated by space
                       [2023-03-23 20:45:04] [build-stderr]    \
                       [2023-03-23 20:45:04] [build-stderr]
                       [2023-03-23 20:45:04] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c:269:1: warning: 'access' attribute directive ignored [-Wattributes]
                       [2023-03-23 20:45:04] [build-stderr]  gf30(const char *); // NON_COMPLIANT -- attributes are not portable.
                       [2023-03-23 20:45:04] [build-stderr]  ^~~~
                       [2023-03-23 20:45:04] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, qcc, -V8.3.0, -Wc,-fsyntax-only, -c, -nopipe, -std=c11, -Vgcc_ntoaarch64le, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-1-2/test.c])

SUITE                : MISRA-C-2012
QUERY                : LanguageExtensionsShouldNotBeUsed
TEST_DIFFERENCE      :
TEST_PASS            : False
RULE                 : RULE-1-2
PACKAGE              : Language3

COMPILE_PASS         : True
COMPILE_ERROR_OUTPUT :
SUITE                : MISRA-C-2012
QUERY                : OccurrenceOfUndefinedBehavior
TEST_DIFFERENCE      :
TEST_PASS            : True
RULE                 : RULE-1-3
PACKAGE              : Language3

🤖 Beep Boop! Matrix Testing for this PR has been completed. If no reports were posted it means this PR does not contain things that need matrix testing!