C++: Add test for meson configuration files

This commit is contained in:
Jeroen Ketema
2026-03-31 10:23:51 +02:00
parent 9f27a5278f
commit afd33e4dcd
3 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1 @@
| testfile.c:6:3:6:8 | call to strlen | This expression has no effect (because $@ has no external side effects). | testfile.c:3:8:3:13 | strlen | strlen |

View File

@@ -0,0 +1 @@
Likely Bugs/Likely Typos/ExprHasNoEffect.ql

View File

@@ -0,0 +1,8 @@
typedef long long size_t;
size_t strlen(const char *s);
int main() {
strlen(""); // GOOD: the source file occurs in a `meson-private/tmp.../testfile.c` directory
return 0;
}