Lines Matching refs:a4
43 struct A4
48 virtual ~A4() {}
53 A4* getA4() {return this;}
57 : public A4,
63 t1::A1* getA1() {return A4::getA1();}
64 A2* getA2() {return A4::getA2();}
65 A3* getA3() {return A4::getA3();}
66 A4* getA4() {return A4::getA4();}
75 A4 a4;
83 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
84 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
85 assert(dynamic_cast<A1*>(a4.getA3()) == a4.getA1());
86 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
98 assert(dynamic_cast<A2*>(a4.getA1()) == 0);
99 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
100 // assert(dynamic_cast<A2*>(a4.getA3()) == 0); // cast to private base
101 // assert(dynamic_cast<A2*>(a4.getA4()) == 0); // cast to ambiguous base
113 assert(dynamic_cast<A3*>(a4.getA1()) == a4.getA3());
114 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
115 assert(dynamic_cast<A3*>(a4.getA3()) == a4.getA3());
116 assert(dynamic_cast<A3*>(a4.getA4()) == a4.getA3());
123 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
124 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
125 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
126 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
127 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
128 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
129 assert(dynamic_cast<A4*>(a4.getA2()) == 0);
130 assert(dynamic_cast<A4*>(a4.getA3()) == a4.getA4());
131 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
132 assert(dynamic_cast<A4*>(a5.getA1()) == a5.getA4());
133 assert(dynamic_cast<A4*>(a5.getA2()) == 0);
134 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
135 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
136 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
143 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
144 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
145 assert(dynamic_cast<A5*>(a4.getA3()) == 0);
146 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
187 struct A4
192 virtual ~A4() {}
197 A4* getA4() {return this;}
201 : public A4,
207 t2::A1* getA1() {return A4::getA1();}
208 A2* getA2() {return A4::getA2();}
209 A3* getA3() {return A4::getA3();}
210 A4* getA4() {return A4::getA4();}
219 A4 a4;
227 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
228 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
229 assert(dynamic_cast<A1*>(a4.getA3()) == a4.getA1());
230 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
242 assert(dynamic_cast<A2*>(a4.getA1()) == 0);
243 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
244 assert(dynamic_cast<A2*>(a4.getA3()) == a4.getA2());
245 // assert(dynamic_cast<A2*>(a4.getA4()) == 0); // cast to ambiguous base
257 assert(dynamic_cast<A3*>(a4.getA1()) == a4.getA3());
258 assert(dynamic_cast<A3*>(a4.getA2()) == a4.getA3());
259 assert(dynamic_cast<A3*>(a4.getA3()) == a4.getA3());
260 assert(dynamic_cast<A3*>(a4.getA4()) == a4.getA3());
267 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
268 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
269 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
270 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
271 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
272 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
273 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
274 assert(dynamic_cast<A4*>(a4.getA3()) == a4.getA4());
275 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
276 assert(dynamic_cast<A4*>(a5.getA1()) == a5.getA4());
277 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
278 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
279 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
280 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
287 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
288 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
289 assert(dynamic_cast<A5*>(a4.getA3()) == 0);
290 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
331 struct A4
336 virtual ~A4() {}
340 A4* getA4() {return this;}
345 public A4
350 A1* getA14() {return A4::getA1();}
352 A2* getA2() {return A4::getA2();}
354 A4* getA4() {return A4::getA4();}
363 A4 a4;
371 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
372 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
373 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
385 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
386 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
387 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
400 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
401 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
402 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
410 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
411 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
412 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
413 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
414 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
415 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
416 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
417 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
418 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
419 assert(dynamic_cast<A4*>(a5.getA13()) == a5.getA4());
420 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
421 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
422 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
423 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
430 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
431 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
432 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
474 struct A4
479 virtual ~A4() {}
483 A4* getA4() {return this;}
488 public A4
493 A1* getA14() {return A4::getA1();}
495 A2* getA2() {return A4::getA2();}
497 A4* getA4() {return A4::getA4();}
506 A4 a4;
514 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
515 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
516 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
528 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
529 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
530 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
543 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
544 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
545 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
553 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
554 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
555 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
556 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
557 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
558 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
559 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
560 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
561 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
562 assert(dynamic_cast<A4*>(a5.getA13()) == 0);
563 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
564 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
565 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
566 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
573 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
574 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
575 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
617 struct A4
622 virtual ~A4() {}
626 A4* getA4() {return this;}
631 public A4
636 A1* getA14() {return A4::getA1();}
638 A2* getA2() {return A4::getA2();}
640 A4* getA4() {return A4::getA4();}
649 A4 a4;
657 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
658 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
659 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
671 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
672 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
673 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
686 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
687 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
688 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
696 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
697 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
698 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
699 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
700 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
701 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
702 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
703 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
704 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
705 assert(dynamic_cast<A4*>(a5.getA13()) == a5.getA4());
706 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
707 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
708 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
709 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
716 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
717 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
718 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
760 struct A4
765 virtual ~A4() {}
769 A4* getA4() {return this;}
774 public A4
779 A1* getA14() {return A4::getA1();}
781 A2* getA2() {return A4::getA2();}
783 A4* getA4() {return A4::getA4();}
792 A4 a4;
800 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
801 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
802 // assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1()); // cast to protected base
814 assert(dynamic_cast<A2*>(a4.getA1()) == 0);
815 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
816 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
829 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
830 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
831 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
839 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
840 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
841 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
842 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
843 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
844 assert(dynamic_cast<A4*>(a4.getA1()) == 0);
845 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
846 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
847 assert(dynamic_cast<A4*>(a5.getA14()) == 0);
848 assert(dynamic_cast<A4*>(a5.getA13()) == a5.getA4());
849 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
850 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
851 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
852 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
859 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
860 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
861 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
903 struct A4
908 virtual ~A4() {}
912 A4* getA4() {return this;}
917 public A4
922 A1* getA14() {return A4::getA1();}
924 A2* getA2() {return A4::getA2();}
926 A4* getA4() {return A4::getA4();}
935 A4 a4;
943 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
944 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
945 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
957 assert(dynamic_cast<A2*>(a4.getA1()) == 0);
958 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
959 // assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); // cast to protected base
972 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
973 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
974 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
982 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
983 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
984 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
985 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
986 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
987 assert(dynamic_cast<A4*>(a4a4.getA4());
988 assert(dynamic_cast<A4*>(a4.getA2()) == 0);
989 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
990 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
991 assert(dynamic_cast<A4*>(a5.getA13()) == a5.getA4());
992 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
993 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
994 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
995 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
1002 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
1003 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1004 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
1046 struct A4
1051 virtual ~A4() {}
1055 A4* getA4() {return this;}
1060 public A4
1065 A1* getA14() {return A4::getA1();}
1067 A2* getA2() {return A4::getA2();}
1069 A4* getA4() {return A4::getA4();}
1078 A4 a4;
1086 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
1087 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
1088 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
1100 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
1101 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
1102 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
1115 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
1116 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
1117 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
1125 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
1126 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
1127 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
1128 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
1129 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
1130 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
1131 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
1132 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
1133 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
1134 assert(dynamic_cast<A4*>(a5.getA13()) == 0);
1135 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1136 assert(dynamic_cast<A4*>(a5.getA3()) == 0);
1137 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
1138 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
1145 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
1146 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1147 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
1189 struct A4
1194 virtual ~A4() {}
1198 A4* getA4() {return this;}
1203 protected A4
1208 A1* getA14() {return A4::getA1();}
1210 A2* getA2() {return A4::getA2();}
1212 A4* getA4() {return A4::getA4();}
1221 A4 a4;
1229 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
1230 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
1231 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
1243 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
1244 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
1245 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
1258 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
1259 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
1260 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
1268 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
1269 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
1270 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
1271 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
1272 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
1273 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
1274 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
1275 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
1276 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
1277 assert(dynamic_cast<A4*>(a5.getA13()) == 0);
1278 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1279 assert(dynamic_cast<A4*>(a5.getA3()) == 0);
1280 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
1281 // assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4()); // cast to protected base
1288 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
1289 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1290 assert(dynamic_cast<A5*>(a4.getA4()) == 0);