13 lines · c
1// RUN: clang-tidy %s -checks=-*,modernize-loop-convert -- -std=c11 | count 02 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