Skip to content

Commit

Permalink
C++: Tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
calumgrant committed Oct 16, 2024
1 parent 9758e02 commit 5315a5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
| tests.c:6:18:6:18 | 1 | This format specifier for type 'char *' does not match the argument type 'int'. |
| tests.c:7:18:7:18 | 1 | This format specifier for type 'char *' does not match the argument type 'int'. |
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// semmle-extractor-options: --expect_errors

int printf(const char * format, ...);
int fprintf();

void f() {
printf("%s", 1); // BAD
Expand Down

0 comments on commit 5315a5c

Please sign in to comment.