CMake/Tests/CompileFeatures/cxx_range_for.cpp

11 lines
133 B
C++
Raw Normal View History

2014-04-03 21:40:06 +04:00
void someFunc()
{
int accumulated = 0;
int numbers[] = { 1, 2, 5 };
for (int i : numbers)
{
accumulated += i;
}
}