CMake/Tests/CompileFeatures/cxx_range_for.cpp

11 lines
133 B
C++

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