summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx
blob: d2396b70e556838a690e2550db916c0dbdfc0a04 (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;
}