From: Martin B. on
Hi all!

Do you know of any resource(s) that provide sourcecode to test static
analysis tools (such as cppcheck, lint, converity, ...)

I'm thinking of a simple program consisting of a few source-files that
incorporates all the "errors" of books such as [C++ Coding Standards,
Sutter, Alexandrescu] or [C++ Gotchas, Dewhurst].
Additionally situations that are only reported by gcc -Wall -Weff-c++ or
by vc++/W4.

Such a suite of test files would be valuable when trying to assess
different static analysis tools (or different compilers) and how to
tweak them to get "good" warning reports out of these tools.

cheers,
Martin

--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]