diff options
Diffstat (limited to 'Tests/CTestTest')
-rw-r--r-- | Tests/CTestTest/SmallAndFast/echoargs.c | 3 | ||||
-rw-r--r-- | Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/Tests/CTestTest/SmallAndFast/echoargs.c b/Tests/CTestTest/SmallAndFast/echoargs.c index 6e17464..19063b4 100644 --- a/Tests/CTestTest/SmallAndFast/echoargs.c +++ b/Tests/CTestTest/SmallAndFast/echoargs.c @@ -3,8 +3,7 @@ int main(int argc, const char* argv[]) { int i = 0; - for (; i<argc; ++i) - { + for (; i < argc; ++i) { fprintf(stdout, "%s\n", argv[i]); } return 0; diff --git a/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx b/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx index 8ea5e40..d2396b7 100644 --- a/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx +++ b/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx @@ -2,9 +2,9 @@ int main(int argc, const char* argv[]) { - unsigned int i = 0; // "i<argc" should produce a "signed/unsigned comparison" warning - for (; i<argc; ++i) - { + 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; |