]> granicus.if.org Git - clang/blobdiff - test/SemaCXX/self-comparison.cpp
[c++20] Add rewriting from comparison operators to <=> / ==.
[clang] / test / SemaCXX / self-comparison.cpp
index e20706a8b6cc9534599cd515c015eaa5697500da..95b830c910f5454cc20c8d3ef4ada231d6397a54 100644 (file)
@@ -5,7 +5,7 @@ int foo(int x) {
 }
 
 struct X {
-  bool operator==(const X &x);
+  bool operator==(const X &x) const;
 };
 
 struct A {