MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / main

Function main

tests/RangeForStmtHandler6Test.cpp:2–18  ·  view source on GitHub ↗

cmdline:-std=c++2a

Source from the content-addressed store, hash-verified

1// cmdline:-std=c++2a
2int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected