diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 2df5549fe..813f1c61b 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -1113,6 +1113,11 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::lista);", "ab")); + ASSERT_EQUALS(";;use;", getcode("struct AB *ab; ab = pop(ab);", "ab")); // non-use.. ASSERT_EQUALS(";;", getcode("char *s; s = s + 1;", "s"));