diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp index b1d8a65c3ff148296c83854c13bba3fc849cd11e..b89577121cceccd8e792f0c60b802ad68bf13e2f 100644 --- a/tests/manual/debugger/simple/simple_test_app.cpp +++ b/tests/manual/debugger/simple/simple_test_app.cpp @@ -62,7 +62,6 @@ // Default: 0 #define USE_EIGEN 0 - ////////////// No further global configuration below //////////////// #if QT_SCRIPT_LIB @@ -3672,6 +3671,21 @@ namespace varargs { } // namespace varargs +namespace valgrind { + + void testLeak() + { + new int[100]; // Leaks intentionally. + } + + void testValgrind() + { + testLeak(); + } + +} // namespace valgrind + + namespace sanity { // A very quick check. @@ -3707,6 +3721,7 @@ namespace sanity { } + int main(int argc, char *argv[]) { // For a very quick check, step into this one. @@ -3775,6 +3790,8 @@ int main(int argc, char *argv[]) qvariant::testQVariant(); qvector::testQVector(); + valgrind::testValgrind(); + // Third party data types. boost::testBoost(); eigen::testEigen();