C++: Add CMake test compilation test

This commit is contained in:
Jeroen Ketema
2025-01-07 14:07:56 +01:00
parent 493e75728c
commit ede801ed88
3 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
typedef long long size_t;
size_t strlen(const char *s);
int main() {
strlen("");
return 0;
}

View File

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