diff options
author | David Cole <david.cole@kitware.com> | 2009-10-15 16:35:54 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-10-15 16:35:54 (GMT) |
commit | 680fae9c978ea02b86601171512974a9ade57fbc (patch) | |
tree | bfd5fffa7a1e31205f83d51e943a40d395b8300c /Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx | |
parent | d03c6d970fc3569ef017ebb20c09bac40ae04416 (diff) | |
download | CMake-680fae9c978ea02b86601171512974a9ade57fbc.zip CMake-680fae9c978ea02b86601171512974a9ade57fbc.tar.gz CMake-680fae9c978ea02b86601171512974a9ade57fbc.tar.bz2 |
Increase ctest coverage. Introduce optionally on intentional compile errors and warnings to the SmallAndFast project. Turn them on for the FailedSubmit tests to cover analyzing LABELS-related errors and warnings.
Diffstat (limited to 'Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx')
-rw-r--r-- | Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx b/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx new file mode 100644 index 0000000..8ea5e40 --- /dev/null +++ b/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx @@ -0,0 +1,11 @@ +#include <stdio.h> + +int main(int argc, const char* argv[]) +{ + unsigned int i = 0; // "i<argc" should produce a "signed/unsigned comparison" warning + for (; i<argc; ++i) + { + fprintf(stdout, "%s\n", argv[i]); + } + return 0; +} |