1 // RUN: clang-tidy %s -checks=-*,modernize-loop-convert -- -std=c11 | count 0
2 
3 // Note: this test expects no diagnostics, but FileCheck cannot handle that,
4 // hence the use of | count 0.
5 
6 int arr[6] = {1, 2, 3, 4, 5, 6};
7 
f(void)8 void f(void) {
9   for (int i = 0; i < 6; ++i) {
10     (void)arr[i];
11   }
12 }
13