summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/modernize-loop-convert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-tidy/test/modernize-loop-convert.cpp')
-rw-r--r--tools/clang-tidy/test/modernize-loop-convert.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/clang-tidy/test/modernize-loop-convert.cpp b/tools/clang-tidy/test/modernize-loop-convert.cpp
new file mode 100644
index 0000000000..2205846c7e
--- /dev/null
+++ b/tools/clang-tidy/test/modernize-loop-convert.cpp
@@ -0,0 +1,7 @@
+int arr[6] = {1, 2, 3, 4, 5, 6};
+
+void bar(void) {
+ for (int i = 0; i < 6; ++i) {
+ (void)arr[i];
+ }
+}