Lines Matching refs:A

4   class A {  class
10 class B : public A {
12 class C : protected A { // expected-note {{declared}}
17 void test(A &a) { in test()
36 class A { class
39 static void test(A&);
41 class B : public A {
44 class C : protected A {
51 void A::test(A &a) { in test()
70 class A { class
73 static void test(A&);
75 class B : public A {
76 static void test(A&);
78 class C : protected A {
79 static void test(A&);
82 static void test(A&);
85 void A::test(A &a) { in test()
89 void B::test(A &a) { in test()
93 void C::test(A &a) { in test()
97 void D::test(A &a) { in test()
105 class A { class
110 class B : public A {
113 class C : protected A {
120 void A::test(B &b) { in test()
140 class A { class
145 class B : public A {
148 class C : protected A { // expected-note 4 {{constrained}} expected-note 3 {{declared}}
155 void A::test(C &c) { in test()
178 class A { class
183 class B : public A {
186 class C : protected A {
193 void A::test(D &d) { in test()
216 class A { class
222 static void test(A&);
224 class B : public A {
225 static void test(A&);
227 class C : protected A {
228 static void test(A&);
231 static void test(A&);
234 void A::test(A &a) { in test()
238 void B::test(A &a) { in test()
242 void C::test(A &a) { in test()
246 void D::test(A &a) { in test()
254 class A { class
262 class B : public A {
265 class C : protected A {
272 void A::test() { in test()
273 void (A::*x)(int) = &A::foo; in test()
274 void (*sx)(Static) = &A::foo; in test()
277 void (A::*x)(int) = &A::foo; // expected-error {{'foo' is a protected member}} in test()
278 void (*sx)(Static) = &A::foo; in test()
281 void (A::*x)(int) = &A::foo; // expected-error {{'foo' is a protected member}} in test()
282 void (*sx)(Static) = &A::foo; in test()
285 void (A::*x)(int) = &A::foo; // expected-error {{'foo' is a protected member}} in test()
286 void (*sx)(Static) = &A::foo; in test()
292 class A { class
300 class B : public A {
303 class C : protected A {
309 void call(void (A::*)(int));
312 void A::test() { in test()
313 call(&A::foo); in test()
314 calls(&A::foo); in test()
317 call(&A::foo); // expected-error {{'foo' is a protected member}} in test()
318 calls(&A::foo); in test()
321 call(&A::foo); // expected-error {{'foo' is a protected member}} in test()
322 calls(&A::foo); in test()
325 call(&A::foo); // expected-error {{'foo' is a protected member}} in test()
326 calls(&A::foo); in test()
331 class A { // expected-note {{member is declared here}} class
335 class B : public A { // expected-note {{member is declared here}}
343 class D : public A {
344 static void test(A &a) { in test()
346 a.A::foo(); // expected-error {{'foo' is a protected member}} in test()
354 b.A::foo(); in test()
362 c.A::foo(); // expected-error {{'A' is a protected member}} \ in test()
372 d.A::foo(); in test()
380 template<typename T> class A { class
385 ~A() { foo(); } in ~A()
388 template class A<int>; variable
393 class A { class
398 class B : public A {
405 b.A::foo(); in test()
413 class A { protected: int foo(); }; class
414 class B : public virtual A {};
416 class D : private C, public virtual A {};
420 d.A::foo(); in test()
427 class A { protected: int foo(); }; // expected-note {{declared protected here}} class
428 class B : private virtual A {};
430 class D : public virtual A {};
434 d.A::foo(); // expected-error {{protected member}} in test()
440 class A { class
456 class B : public A {
458 void (A::*ptr)(int); in use()
459 ptr = &A::temp; // expected-error {{protected member}} in use()
460 ptr = &A::nontemp; // expected-error {{protected member}} in use()
461 ptr = &A::ovl_temp; // expected-error {{protected member}} in use()
462 ptr = &A::ovl_nontemp; // expected-error {{protected member}} in use()
463 ptr = &A::ovl_withtemp; // expected-error {{protected member}} in use()
469 class A { class
471A(); // expected-note 2 {{protected constructor can only be used to construct a base class subobje…
472A(const A &); // expected-note {{protected constructor can only be used to construct a base class …
473 …~A(); // expected-note 3 {{protected destructor can only be used to destroy a base class subobject…
476 class B : public A {
479 B(int i) : A() {} in B()
485 A a; // expected-error {{protected constructor}} expected-error {{protected destructor}} in test0()
488 A *test1() { in test1()
489 return new A(); // expected-error {{protected constructor}} in test1()
492 void test2(A *a) { in test2()
496 A test3(A *a) { in test3()
500 void test4(A *a) { in test4()
501 a->~A(); // expected-error {{protected member}} in test4()
507 class A { class
509 ~A();
512 class B : public virtual A {