| 393 | std::atomic<int> dtorCount2 = 0; |
| 394 | |
| 395 | struct Counter2 |
| 396 | { |
| 397 | Counter2() { ctorCount2++; } |
| 398 | ~Counter2() { dtorCount2++; } |
| 399 | |
| 400 | Counter2(const Counter2&) = delete; |
| 401 | Counter2& operator=(const Counter2&) = delete; |
| 402 | Counter2(const Counter2&&) { moveCount2++; } |
| 403 | Counter2& operator=(Counter2&&) |
| 404 | { |
| 405 | moveCount2++; |
| 406 | return *this; |
| 407 | } |
| 408 | }; |
| 409 | |
| 410 | TEST(SlotMapTest, CheckMoves) |
| 411 | { |
nothing calls this directly
no outgoing calls
no test coverage detected