Lines Matching full:friend
3 friend class A; // expected-error {{'friend' used outside of class}}
4 void f() { friend class A; } // expected-error {{'friend' used outside of class}}
5 class C { friend class A; };
6 class D { void f() { friend class A; } }; // expected-error {{'friend' used outside of class}}
15 friend void ns::f(int a);
24 friend void Outer::foo(T);
40 friend void ::test2::foo::Func(int x);
47 friend const int getInt(int inInt = 0) {}
54 friend class T4B;
71 template<int> friend A::~A(); // expected-error {{destructor cannot be declared as a template}}
78 struct A1 { friend void A(); };
80 struct B { friend void B(); };
88 friend class vectorA;
108 friend class vector<A>;
125 friend void vector<A>::f(const A&);
137 friend int test7_f() { return 42; }
153 template<class T> friend void ns1::f(T t); // expected-error {{cannot befriend target of using declaration}}
154 friend void B::f(); // expected-error {{cannot befriend target of using declaration}}
163 friend void C::f(int, int, int) {} // expected-error {{no function named 'f' with type 'void (int, int, int)' was found in the specified scope}}
172 friend void f10_a();
173 friend void f10_b();
174 friend void f10_c();
175 friend void f10_d();
176 friend void f10_a(X);
177 friend void f10_b(X);
178 friend void f10_c(X);
179 friend void f10_d(X);
184 friend void f10_a();
185 friend void f10_b();
186 friend void f10_c();
187 friend void f10_d();
188 friend void f10_a(X);
189 friend void f10_b(X);
190 friend void f10_c(X);
191 friend void f10_d(X);
221 friend void f10_d();
222 friend void f10_d(X);
227 friend void f10_d();
228 friend void f10_d(X);
269 friend void f10_d();
270 friend void f10_d(X);