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

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