From 373367ca7e278b4116e0af2b51f838cfff34d8df Mon Sep 17 00:00:00 2001 From: nimratcoderabbit Date: Mon, 14 Jul 2025 16:24:24 -0400 Subject: [PATCH] CPPCheck --- cppcheck/test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cppcheck/test.cpp 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; +} +