diff --git a/cppcheck/test.cpp b/cppcheck/test.cpp new file mode 100644 index 0000000..6c566dd --- /dev/null +++ b/cppcheck/test.cpp @@ -0,0 +1,17 @@ +#include +using namespace std; + +void unusedFunction() { + int x = 42; +} + +int main() { + int a; + int b = a + 5; + int* ptr = NULL; + if (ptr) { + cout << *ptr << endl; + } + return 0; +} +