Searched refs:friend (Results 1 - 25 of 584) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dfriend5.C5 friend bool(); // { dg-error "" } invalid declaration
H A Dfriend8.C7 // We failed to diagnose when a class friend declaration did not use an
14 friend class Z;
15 friend Y; // { dg-error "" } friend must use aggr tag
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/parse/
H A Dfriend3.C3 // PR 11553 catch duplicate friend specifiers
7 friend friend class C; // { dg-error "duplicate" }
H A Dfriend5.C5 friend void foo(int) {} // { dg-message "declaration" }
6 friend void foo() {} // { dg-error "foo" "err" }
H A Dfriend8.C7 friend // { dg-error "friend" }
H A Dfriend12.C5 friend int i = 0; // { dg-error "cannot be declared friend" }
H A Dfriend7.C13 friend A::A ();
14 friend A::~A ();
15 friend A::A (const A &);
20 friend int C ();
21 friend int ~C (); // { dg-error "return type|in friend decl" }
22 friend int C (const C &);
27 friend int D () {}
28 friend int ~D () {} // { dg-error "return type|in friend dec
[all...]
H A Dbitfield3.C8 friend func_type f : 2; /* { dg-error "with non-integral type" } */
H A Ddefarg10.C10 friend void Foo (int);
H A Ddtor13.C6 static friend A::~A(); /* { dg-error "storage class specifiers|extra qualification|implicitly friend" } */
H A Ddtor8.C7 friend A::~B(); // { dg-error "as member of" }
H A Derror8.C4 struct A { friend typename struct B; };
9 // { dg-error "12:friend declaration does not name a class or function" "friend decl" { target *-*-* } 4 }
H A Dfriend4.C4 // You can't use friend when defining a class.
7 friend class B { }; // { dg-error "friend" }
H A Dlocal-class1.C12 friend void g () { } // { dg-error "local class" "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.pt/
H A Dfriend26.C5 friend void f<>(int); // { dg-error "" } does not match any template
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Dauto30.C6 auto friend struct B; // { dg-error "multiple types|can only be specified|friend" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp1y/
H A Dauto-fn26.C5 friend auto f() { }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/other/
H A Dfriend3.C7 friend ~A(); // { dg-error "qualified name" }
12 friend ~A(); // { dg-error "qualified name" }
H A Dfriend4.C6 friend void A::foo(); // { dg-error "implicitly friends" }
7 friend A::~A(); // { dg-error "implicitly friends" }
H A Dfriend5.C8 friend A::~A() {} /* { dg-error "implicitly friends of their class" } */
H A Dincomplete3.C7 friend A : 2; // { dg-error "incomplete type" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.gb/
H A Dscope07.C4 friend class A;
5 friend class B;
6 friend class C;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/lookup/
H A Dfriend12.C7 friend void bar(); // { dg-error "without prior declaration" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.bob/
H A Dfriend1.C4 static friend int f(); // { dg-error "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.brendan/
H A Darm3.C3 // ARM $11.4: A function first declared in a friend decl is equivalent
7 friend g(); // { dg-error "" } previous declaration

Completed in 197 milliseconds

1234567891011>>