A user-defined type which is exported and can be used by any test
| 26 | |
| 27 | /// A user-defined type which is exported and can be used by any test |
| 28 | class UserType { |
| 29 | public: |
| 30 | UserType() = default; |
| 31 | explicit UserType(int i) : i(i) {} |
| 32 | |
| 33 | int value() const { return i; } |
| 34 | void set(int set) { i = set; } |
| 35 | |
| 36 | private: |
| 37 | int i = -1; |
| 38 | }; |
| 39 | |
| 40 | /// Like UserType, but increments `value` on copy for quick reference vs. copy tests |
| 41 | class IncType : public UserType { |
no outgoing calls