mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
C++: Add CMake test compilation test
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
typedef long long size_t;
|
||||
|
||||
size_t strlen(const char *s);
|
||||
|
||||
int main() {
|
||||
strlen("");
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
| CheckFunctionExists.c:6:3:6:8 | call to strlen | This expression has no effect (because $@ has no external side effects). | CheckFunctionExists.c:3:8:3:13 | strlen | strlen |
|
||||
@@ -0,0 +1 @@
|
||||
Likely Bugs/Likely Typos/ExprHasNoEffect.ql
|
||||
Reference in New Issue
Block a user