summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/modernize-loop-convert.cpp
blob: 2205846c7ec417afd53de6ebc63958f04fdc060c (plain)
1
2
3
4
5
6
7
int arr[6] = {1, 2, 3, 4, 5, 6};

void bar(void) {
  for (int i = 0; i < 6; ++i) {
    (void)arr[i];
  }
}