| 1 | #include <iostream> |
| 2 | |
| 3 | struct A |
| 4 | { |
| 5 | A() = default; |
| 6 | |
| 7 | A& begin() |
| 8 | { |
| 9 | return *this; |
| 10 | } |
| 11 | |
| 12 | const int end() |
| 13 | { |
| 14 | return v[9]; |
| 15 | } |
| 16 | |
| 17 | A& operator++() |
| 18 | { |
| 19 | return *this; |
| 20 | } |
| 21 | |
| 22 | int operator*() { return 1; } |
| 23 | |
| 24 | int v[10]{}; |
| 25 | }; |
| 26 | |
| 27 | bool operator!=(const A&, const int&){ return true; } |
| 28 |
nothing calls this directly
no outgoing calls
no test coverage detected