| 556 | class Dtor; |
| 557 | |
| 558 | struct Storage { |
| 559 | template <class T> |
| 560 | static auto &calls() { |
| 561 | static auto calls = 0; |
| 562 | return calls; |
| 563 | } |
| 564 | |
| 565 | Storage() { ++calls<Ctor>(); } |
| 566 | Storage(const Storage &) { ++calls<CopyCtor>(); } |
| 567 | Storage(Storage &&) { ++calls<MoveCtor>(); } |
| 568 | ~Storage() { ++calls<Dtor>(); } |
| 569 | |
| 570 | double someDummyDataSoTypeIsNonEmpty = 0; |
| 571 | }; |
| 572 | |
| 573 | test should_support_ref_storage = [] { |
| 574 | Storage::calls<Ctor>() = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected