================ @@ -20,6 +20,20 @@ class SpaceShipDefaultCompare { int operator<=>(const SpaceShipDefaultCompare &) const = default; }; +class EqDefaultCompareOutOfClass { + int used; // no warning ---------------- erichkeane wrote:
Please explain a touch better with 'no warning'? Something like, "Test to ensure that the defaulted operator results in this being seen as 'used' despite there not being code to do so."? https://github.com/llvm/llvm-project/pull/116965 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits