Skip to content

Commit 5315a5c

Browse files
committed
C++: Tweak test
1 parent 9758e02 commit 5315a5c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| tests.c:6:18:6:18 | 1 | This format specifier for type 'char *' does not match the argument type 'int'. |
1+
| tests.c:7:18:7:18 | 1 | This format specifier for type 'char *' does not match the argument type 'int'. |

cpp/ql/test/query-tests/Likely Bugs/Format/WrongTypeFormatArguments/Buildless/tests.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// semmle-extractor-options: --expect_errors
22

33
int printf(const char * format, ...);
4+
int fprintf();
45

56
void f() {
67
printf("%s", 1); // BAD

0 commit comments

Comments
 (0)