Lines Matching refs:A

20   class A {  class
29 void test(A *op) { in test()
34 void (A::*a)(Public&) = &A::foo; in test()
35 void (A::*b)(Protected&) = &A::foo; // expected-error {{'foo' is a protected member}} in test()
36 void (A::*c)(Private&) = &A::foo; // expected-error {{'foo' is a private member}} in test()
42 class A { class
63 void operator+(const A &, Public&);
64 void operator+(const A &, Protected&);
65 void operator+(const A &, Private&);
66 void operator-(const A &);
68 void test(A &a, Public &pub, Protected &prot, Private &priv) { in test()
80 const A &ca = a; in test()
94 class A { class
96 A(); // expected-note 1+{{declared private here}}
98 static A foo;
101 A a; // expected-error {{calling a private constructor}}
102 A A::foo; // okay
105 class B : A { }; // expected-error {{base class 'test2::A' has private default constructor}}
108 class C : virtual A {
116 …class B : A { }; // expected-note {{base class 'test2::A' has an inaccessible default constructor}}
120 …class C : virtual A { // expected-note {{default constructor of 'D' is implicitly deleted because …
132 class A { class
134 ~A(); // expected-note 2 {{declared private here}}
135 static A foo;
138 A a; // expected-error {{variable of type 'test3::A' has private destructor}}
139 A A::foo;
141 void foo(A param) { // okay in foo()
142 A local; // expected-error {{variable of type 'test3::A' has private destructor}} in foo()
305 class A { class
306 void operator=(const A &);
313 class Test1 { A a; }; // expected-error {{private member}}
319 class Test2 : A {}; // expected-error {{private member}}
325 …class Test1 { A a; }; // expected-note {{because field 'a' has an inaccessible copy assignment ope…
331 …class Test2 : A {}; // expected-note {{because base class 'test5::A' has an inaccessible copy assi…
341 class A { class
342 public: A();
343 private: A(const A &);
350 class Test1 { A a; }; // expected-error {{field of type 'test6::A' has private copy constructor}}
355 class Test2 : A {}; // expected-error {{base class 'test6::A' has private copy constructor}}
360 class Test1 { A a; }; // expected-note {{field 'a' has an inaccessible copy constructor}}
365 …class Test2 : A {}; // expected-note {{base class 'test6::A' has an inaccessible copy constructor}}
374 class A { class
377 class B : A {
388 class A { class
397 new (2) A(); in test()
403 class A { class
406 class B : private A { // expected-note {{constrained by private inheritance here}}
414 class A { class
423 value = A::value // expected-error {{'value' is a private member of 'test10::A'}}
429 value = A::value
435 class A { class
436 protected: virtual ~A();
439 class B : public A {
447 class A { class
452 int foo(A *a) { in foo()
461 struct A { struct
466 struct B : protected A {
467 using A::foo;
468 using A::x;
472 A *d; in test()
480 class A { class
481 private: ~A(); // expected-note {{declared private here}}
483 A foo();
504 template <class T> class A { class
512 int test1(A<int> &a) { in test1()
516 int test2(A<int> &a) { in test2()
520 int test3(A<int> &a) { in test3()
524 int test4(A<int> &a) { in test4()
529 template class A<int>; variable
530 template class A<long>; // expected-note 4 {{in instantiation}} variable
532 template <class T> class B : public A<T> {
537 int test1(A<int> &a) { in test1()
541 int test2(A<int> &a) { in test2()
560 class A { ~A(); }; // expected-note 2{{declared private here}} class
561 …void b() { throw A(); } // expected-error{{temporary of type 'test16::A' has private destructor}} \ in b()
567 class A { class
571 A::Inner<int> s; // expected-error {{'Inner' is a private member of 'test17::A'}}
575 template <class T> class A {}; // expected-note {{member is declared here}} class
576 class B : A<int> { // expected-note {{constrained by implicitly private inheritance here}}
577 A<int> member;
580 A<int> member; // expected-error {{'A' is a private member of 'test18::A<int>'}}
586 class A { ~A(); }; class
589 void b(A* x) { throw x; } in b()
605 template <class T> class A { class
612 template <class T> class A<T>::Inner {};
614 …template <class T> class A<T>::Inner; // expected-error{{non-friend class member 'Inner' cannot ha…
618 A<int>::Inner i; // expected-error {{'Inner' is a private member}} in test()
623 struct A { operator bool(); }; struct
624 struct B : private A { using A::operator bool; };
633 template <typename T> class A { class
634 A();
635 static A instance;
638 template <typename T> A<T> A<T>::instance;
639 template class A<int>; variable