cmdline:-std=c++2a
| 1 | // cmdline:-std=c++2a |
| 2 | int main() |
| 3 | { |
| 4 | int ar[]{1,2,3,4,5}; |
| 5 | |
| 6 | int cnt{0}; |
| 7 | |
| 8 | for(int pos=0; const auto v: ar){ |
| 9 | cnt += v; |
| 10 | pos++; |
| 11 | } |
| 12 | |
| 13 | for( const auto v: ar){ |
| 14 | cnt += v; |
| 15 | } |
| 16 | |
| 17 | return cnt; |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected