Skip to content

Commit ede801e

Browse files
committed
C++: Add CMake test compilation test
1 parent 493e757 commit ede801e

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
typedef long long size_t;
2+
3+
size_t strlen(const char *s);
4+
5+
int main() {
6+
strlen("");
7+
return 0;
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Likely Bugs/Likely Typos/ExprHasNoEffect.ql

0 commit comments

Comments
 (0)