summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_range_for.cpp
blob: e3b5724a7fa251d33333a661271baa39a763b05c (plain)
1
2
3
4
5
6
7
8
9

void someFunc()
{
  int accumulated = 0;
  int numbers[] = { 1, 2, 5 };
  for (int i : numbers) {
    accumulated += i;
  }
}