summaryrefslogtreecommitdiff
path: root/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx
blob: 8ea5e404f76c8198f2bb8563791c73d0d8f64a3c (plain)
1
2
3
4
5
6
7
8
9
10
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;
}