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
6int arr[6] = {1, 2, 3, 4, 5, 6};
7
8void f(void) {
9 for (int i = 0; i < 6; ++i) {
10 (void)arr[i];
11 }
12}
13

source code of clang-tools-extra/test/clang-tidy/checkers/modernize/loop-convert.c