blob: 4c7d956c31d169b873289d267a9f669ffec24bd3 [file] [log] [blame]
Aaron Ballman8b0583e2015-08-28 17:58:10 +00001// 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}