| 6 | #include "maybe.h" |
| 7 | |
| 8 | class TIncrementOnDestroy { |
| 9 | private: |
| 10 | int* Ptr_; |
| 11 | |
| 12 | public: |
| 13 | TIncrementOnDestroy(int* ptr) noexcept |
| 14 | : Ptr_(ptr) |
| 15 | { |
| 16 | } |
| 17 | |
| 18 | ~TIncrementOnDestroy() { |
| 19 | ++*Ptr_; |
| 20 | } |
| 21 | }; |
| 22 | |
| 23 | Y_UNIT_TEST_SUITE(TMaybeTest) { |
| 24 | Y_UNIT_TEST(TestStatic) { |