Lines Matching refs:B

3 struct B {};  struct
6 …bool operator<(const B&, const B&) = default; // expected-error {{comparison operator template can…
10 …friend bool operator!=(const A&, const B&) = default; // expected-error {{parameters for defaulted…
11 …friend bool operator!=(const B&, const B&) = default; // expected-error {{invalid parameter type f…
13 …friend bool operator<(const B&, const B&) = default; // expected-error {{invalid parameter type fo…
20 …bool operator>=(const B&) const = default; // expected-error-re {{invalid parameter type for defau…
21 …static bool operator>(const B&) = default; // expected-error {{overloaded 'operator>' cannot be a …
61 struct B { in f() struct
63 std::strong_ordering operator<=>(const B &) const = default; in f()
65 return B(); in f()
72 struct B { in g() struct
74 Cmp operator<=>(const B &) const = default; in g()
76 return B(); in g()
80 struct B; in h()
81 bool operator==(const B&, const B&); in h()
82 bool operator!=(const B&, const B&); // expected-note 2{{best match}} in h()
83 std::strong_ordering operator<=>(const B&, const B&); in h()
84 bool operator<(const B&, const B&); // expected-note 2{{best match}} in h()
85 bool operator<=(const B&, const B&); // expected-note 2{{best match}} in h()
86 bool operator>(const B&, const B&); // expected-note 2{{best match}} in h()
87 bool operator>=(const B&, const B&); // expected-note 2{{best match}} in h()
89 struct B { in h() struct
90 …bool operator!=(const B&) const = default; // expected-warning {{implicitly deleted}} expected-not… in h()
91 …bool operator<(const B&) const = default; // expected-warning {{implicitly deleted}} expected-note… in h()
92 …bool operator<=(const B&) const = default; // expected-warning {{implicitly deleted}} expected-not… in h()
93 …bool operator>(const B&) const = default; // expected-warning {{implicitly deleted}} expected-note… in h()
94 …bool operator>=(const B&) const = default; // expected-warning {{implicitly deleted}} expected-not… in h()
96 return B(); in h()
144 struct B { struct
146 friend bool operator==(B, B) = default; // ok
147 friend bool operator==(const B&, const B&) = default; // expected-warning {{deleted}}