| 123456789101112131415161718192021222324 |
- //
- // test_stubs.h
- // pointers
- //
- // Created by Sam Jaffe on 8/12/20.
- // Copyright © 2020 Sam Jaffe. All rights reserved.
- //
- #pragma once
- struct const_tracking_stub {
- bool is_const() { return false; }
- bool is_const() const { return true; }
- };
- struct destructor_sentinal {
- ~destructor_sentinal() { ref_ = true; }
- bool & ref_;
- };
- struct destructor_ctr {
- ~destructor_ctr() { ++ref_; }
- int & ref_;
- };
|