diff options
Diffstat (limited to 'Tests/CompileFeatures/cxx_range_for.cpp')
-rw-r--r-- | Tests/CompileFeatures/cxx_range_for.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_range_for.cpp b/Tests/CompileFeatures/cxx_range_for.cpp new file mode 100644 index 0000000..892109e --- /dev/null +++ b/Tests/CompileFeatures/cxx_range_for.cpp @@ -0,0 +1,10 @@ + +void someFunc() +{ + int accumulated = 0; + int numbers[] = { 1, 2, 5 }; + for (int i : numbers) + { + accumulated += i; + } +} |