| 45 | } |
| 46 | |
| 47 | struct constexpr_type |
| 48 | { |
| 49 | constexpr constexpr_type() noexcept = default; |
| 50 | constexpr constexpr_type(const constexpr_type&) noexcept = default; |
| 51 | constexpr constexpr_type(constexpr_type&&) noexcept = default; |
| 52 | constexpr constexpr_type(int x) noexcept : m_storage{x}{} |
| 53 | |
| 54 | auto operator=(const constexpr_type&) noexcept -> constexpr_type& = default; |
| 55 | auto operator=(constexpr_type&&) noexcept -> constexpr_type& = default; |
| 56 | auto operator=(int x) noexcept -> constexpr_type& |
| 57 | { |
| 58 | m_storage = x; |
| 59 | return (*this); |
| 60 | } |
| 61 | int m_storage = 0; |
| 62 | }; |
| 63 | |
| 64 | inline constexpr |
| 65 | auto operator==(const constexpr_type& lhs, const constexpr_type& rhs) |
nothing calls this directly
no outgoing calls
no test coverage detected