================
@@ -90,6 +90,22 @@ class A {
}
};
+class FriendFunction {
+ int x; // expected-note {{previous declaration is here}}
+ friend bool operator==(const FriendFunction &f, int x) {
+ return f.x == x;
+ }
----------------
brunodf-gf wrote:
Another case you could consider to add for completeness is an inline-defined
friend function that is not an operator.
https://github.com/llvm/llvm-project/pull/221249
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits