cmake/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx

12 lines
235 B
C++
Raw Normal View History

2009-11-06 22:07:41 +02:00
#include <stdio.h>
int main(int argc, const char* argv[])
{
2016-07-09 11:21:54 +02:00
unsigned int i =
0; // "i<argc" should produce a "signed/unsigned comparison" warning
for (; i < argc; ++i) {
2009-11-06 22:07:41 +02:00
fprintf(stdout, "%s\n", argv[i]);
}
return 0;
}