From 8ca1ed2bd6121299588f24cc16415fcc59cda74f Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 17 Jul 2025 11:33:18 +0330 Subject: [PATCH] wip: checking if valgrind fails --- modules/time/src/timer.tests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/time/src/timer.tests.cpp b/modules/time/src/timer.tests.cpp index 0c84bfe..e14afb0 100644 --- a/modules/time/src/timer.tests.cpp +++ b/modules/time/src/timer.tests.cpp @@ -28,6 +28,9 @@ lt::test::Suite raii = [] { Timer {}; } }; + + int *leak = new int(42); // Allocated memory, never freed + std::cout << "Hello, Valgrind!" << *leak << std::endl; }; lt::test::Suite reset_and_elapsed_time = [] {