Skip to content

Commit 0358f6e

Browse files
committed
extractor
1 parent 308ee91 commit 0358f6e

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// semmle-extractor-options:--clang -fhonor-infinity -std=c11 --edg --diag_error=implicit_func_decl -nostdinc -I../../../../common/test/includes/standard-library
2+
3+
// do it on a translation unit -- flag first line
4+
15
#include <stdbool.h>
26
#include <stdio.h>
37
// Note: Clang aims to support both clang and gcc extensions.
@@ -135,7 +139,7 @@ void gf14() {
135139
}
136140

137141
void gf15() {
138-
float f = 0x1.fp3; // NON_COMPLIANT
142+
float f = 0x1.fp3; // NON_COMPLIANT
139143
}
140144

141145
void gf16() {

0 commit comments

Comments
 (0)