Lines Matching refs:A
15 class A { class
24 void test(A *op) { in test()
29 void (A::*a)(Public&) = &A::foo; in test()
30 void (A::*b)(Protected&) = &A::foo; // expected-error {{'foo' is a protected member}} in test()
31 void (A::*c)(Private&) = &A::foo; // expected-error {{'foo' is a private member}} in test()
37 class A { class
58 void operator+(const A &, Public&);
59 void operator+(const A &, Protected&);
60 void operator+(const A &, Private&);
61 void operator-(const A &);
63 void test(A &a, Public &pub, Protected &prot, Private &priv) { in test()
75 const A &ca = a; in test()
89 class A { class
91 A(); // expected-note 3 {{declared private here}}
93 static A foo;
96 A a; // expected-error {{calling a private constructor}}
97 A A::foo; // okay
99 class B : A { }; // expected-error {{base class 'test2::A' has private default constructor}}
102 class C : virtual A {
113 class A { class
115 ~A(); // expected-note 2 {{declared private here}}
116 static A foo;
119 A a; // expected-error {{variable of type 'test3::A' has private destructor}}
120 A A::foo;
122 void foo(A param) { // okay in foo()
123 A local; // expected-error {{variable of type 'test3::A' has private destructor}} in foo()
203 class A { class
204 void operator=(const A &); // expected-note 2 {{implicitly declared private here}}
207 class Test1 { A a; }; // expected-error {{private member}}
213 class Test2 : A {}; // expected-error {{private member}}
222 class A { class
223 public: A();
224 private: A(const A &); // expected-note 2 {{declared private here}}
227 class Test1 { A a; }; // expected-error {{field of type 'test6::A' has private copy constructor}}
232 class Test2 : A {}; // expected-error {{base class 'test6::A' has private copy constructor}}
240 class A { class
243 class B : A {
254 class A { class
263 new (2) A(); in test()
269 class A { class
272 class B : private A { // expected-note {{constrained by private inheritance here}}
280 class A { class
289 value = A::value // expected-error {{'value' is a private member of 'test10::A'}}
295 value = A::value
301 class A { class
302 protected: virtual ~A();
305 class B : public A {
313 class A { class
318 int foo(A *a) { in foo()
327 struct A { struct
332 struct B : protected A {
333 using A::foo;
334 using A::x;
338 A *d; in test()
346 class A { class
347 private: ~A(); // expected-note {{declared private here}}
349 A foo();
370 template <class T> class A { class
378 int test1(A<int> &a) { in test1()
382 int test2(A<int> &a) { in test2()
386 int test3(A<int> &a) { in test3()
390 int test4(A<int> &a) { in test4()
395 template class A<int>; variable
396 template class A<long>; // expected-note 4 {{in instantiation}} variable
398 template <class T> class B : public A<T> {
403 int test1(A<int> &a) { in test1()
407 int test2(A<int> &a) { in test2()
426 class A { ~A(); }; // expected-note 2{{declared private here}} class
427 …void b() { throw A(); } // expected-error{{temporary of type 'test16::A' has private destructor}} \ in b()
433 class A { class
437 A::Inner<int> s; // expected-error {{'Inner' is a private member of 'test17::A'}}
441 template <class T> class A {}; class
442 class B : A<int> {
443 A<int> member;
450 A<int> member;
456 class A { ~A(); }; class
459 void b(A* x) { throw x; } in b()
475 template <class T> class A { class
482 template <class T> class A<T>::Inner {};
484 …template <class T> class A<T>::Inner; // expected-error{{non-friend class member 'Inner' cannot ha…
488 A<int>::Inner i; // expected-error {{'Inner' is a private member}} in test()
493 struct A { operator bool(); }; struct
494 struct B : private A { using A::operator bool; };
503 template <typename T> class A { class
504 A();
505 static A instance;
508 template <typename T> A<T> A<T>::instance;
509 template class A<int>; variable