| 230 | |
| 231 | namespace issue_35 { |
| 232 | class ref_obj { |
| 233 | public: |
| 234 | ref_obj() = default; |
| 235 | ref_obj(ref_obj const&) = delete; |
| 236 | ref_obj(ref_obj&&) = default; |
| 237 | ref_obj& operator=(ref_obj&&) = default; |
| 238 | ref_obj& operator=(ref_obj const&) = delete; |
| 239 | |
| 240 | int data() const { |
| 241 | return data_; |
| 242 | } |
| 243 | |
| 244 | private: |
| 245 | int data_{8373827}; |
| 246 | }; |
| 247 | |
| 248 | ref_obj& ref_obj_getter() { |
| 249 | static ref_obj some; |
nothing calls this directly
no outgoing calls
no test coverage detected