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

Function main

tests/RangeForStmtHandlerTest.cpp:55–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55int main()
56{
57 char arr[10]{2,4,6,8,10,12,14,16,18,20};
58
59 for(char c : arr) {
60 printf("%#x\n", c);
61 c++;
62 printf("%#x\n", c);
63 }
64
65 std::vector<int> v{1, 2, 3, 5};
66
67 for(auto& vv : v) {
68 printf("%d\n", vv);
69 }
70
71 for(auto& v2 : v)
72 printf("%d\n", v2);
73
74 A a;
75 for(auto it : a) {
76 printf("%d\n", it);
77 }
78
79 B b;
80 for(auto bit : b) {
81 printf("%d\n", bit);
82 }
83
84}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected