================
@@ -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;
+ }
----------------
AhmedKamel10 wrote:Added the test case. https://github.com/llvm/llvm-project/pull/221249 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
