Home | History | Annotate | Download | only in drs

Lines Matching full:friend

231     friend dr125_A::dr125_B (::dr125_C)(); // ok
232 friend dr125_A (::dr125_B::dr125_C)(); // ok
233 friend dr125_A::dr125_B::dr125_C(); // expected-error {{requires a type specifier}}
240 struct E : private C { friend class A; friend class B; };
355 friend A g(A a) { return a; }
364 friend void f(int, int = 0, int); // expected-error {{friend declaration specifying a default argument must be the only declaration}}
365 friend void g(int, int, int = 0); // expected-error {{friend declaration specifying a default argument must be the only declaration}}
366 friend void h(int, int, int = 0); // expected-error {{friend declaration specifying a default argument must be a definition}}
367 friend void i(int, int, int = 0) {} // expected-note {{previous declaration is here}}
368 friend void j(int, int, int = 0) {}
371 void i(int, int, int); // expected-error {{friend declaration specifying a default argument must be the only declaration}}
378 friend void dr136::k(int, int, int, int = 0); // expected-error {{friend declaration specifying a default argument must be the only declaration}} \
384 friend void dr136::k(int, int, int = 0, int); // expected-error {{friend declaration specifying a default argument must be the only declaration}}
391 friend void B::f(int = 0); // expected-error {{friend declaration specifying a default argument must be the only declaration}}
418 friend void f(A &); // expected-error {{different kind of symbol}}
426 friend void f(A &);
428 void g(A a) { int i = f(a); } // ok, f is typedef not friend function
511 struct X { friend void B::f(X); };