C++: Tweak test

This commit is contained in:
Calum Grant
2024-10-16 15:47:34 +01:00
parent 9758e023f9
commit 5315a5cfbf
2 changed files with 2 additions and 1 deletions

View File

@@ -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'. |

View File

@@ -1,6 +1,7 @@
// semmle-extractor-options: --expect_errors
int printf(const char * format, ...);
int fprintf();
void f() {
printf("%s", 1); // BAD