diff --git a/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/__has_operator_addressof.pass.cpp b/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/__has_operator_addressof.pass.cpp index 201f07228b83..1c715e04970c 100644 --- a/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/__has_operator_addressof.pass.cpp +++ b/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/__has_operator_addressof.pass.cpp @@ -51,7 +51,7 @@ constexpr H* operator&(H const &&) { return nullptr; } struct J { - constexpr J* operator&() &&; + constexpr J* operator&() const &&; }; #endif // _LIBCPP_HAS_NO_CONSTEXPR