Home | History | Annotate | Download | only in SemaCXX

Lines Matching defs:Abstract

20 static_assert(__is_abstract(D), "D inherits from an abstract class");
26 static_assert(!__is_abstract(E), "E inherits from an abstract class but implements f");
28 C *d = new C; // expected-error {{allocating an object of abstract class type 'C'}}
30 C c; // expected-error {{variable type 'C' is an abstract class}}
31 void t1(C c); // expected-error {{parameter type 'C' is an abstract class}}
32 void t2(C); // expected-error {{parameter type 'C' is an abstract class}}
35 C c; // expected-error {{field type 'C' is an abstract class}}
41 C(); // expected-error {{allocating an object of abstract class type 'C'}}
42 t3(C()); // expected-error {{allocating an object of abstract class type 'C'}}
45 C e1[2]; // expected-error {{array of abstract class type 'C'}}
46 C (*e2)[2]; // expected-error {{array of abstract class type 'C'}}
47 C (**e3)[2]; // expected-error {{array of abstract class type 'C'}}
49 void t4(C c[2]); // expected-error {{array of abstract class type 'C'}}
51 void t5(void (*)(C)); // expected-error {{parameter type 'C' is an abstract class}}
53 typedef void (*Func)(C); // expected-error {{parameter type 'C' is an abstract class}}
57 F a() { while (1) {} } // expected-error {{return type 'F' is an abstract class}}
60 void f(F c); // expected-error {{parameter type 'F' is an abstract class}}
64 void u(F c); // expected-error {{parameter type 'F' is an abstract class}}
73 class Abstract;
75 void t7(Abstract a);
78 void h(Abstract a);
82 void h(Abstract a);
85 class Abstract {
197 void g(X1 parm7); // expected-error {{parameter type 'test2::X1' is an abstract class}}
198 void g(X1 parm8[2]); // expected-error {{array of abstract class type 'test2::X1'}}
204 void g(X2 parm10); // expected-error {{parameter type 'X2<N>' is an abstract class}}
205 void g(X2 parm11[2]); // expected-error {{array of abstract class type 'X2<N>'}}
212 virtual void abstract() = 0;
216 virtual void abstract() = 0;
221 static C x; // expected-error {{abstract class}}
222 virtual void abstract() = 0; // expected-note {{unimplemented pure virtual method}}
226 virtual void abstract() = 0; // expected-note {{unimplemented pure virtual method}}
227 static D x; // expected-error {{abstract class}}
233 A x; // expected-error {{abstract class}}
234 virtual void abstract() = 0; // expected-note {{unimplemented pure virtual method}}
238 virtual void abstract() = 0; // expected-note {{unimplemented pure virtual method}}
239 B x; // expected-error {{abstract class}}
243 static C x; // expected-error {{abstract class}}
244 virtual void abstract() = 0; // expected-note {{unimplemented pure virtual method}}
248 virtual void abstract() = 0; // expected-note {{unimplemented pure virtual method}}
249 static D x; // expected-error {{abstract class}}