Lines Matching refs:A2

30 struct A2  struct
33 virtual ~A2() {} in ~A2() argument
35 A2* getA2() {return this;} in getA2() argument
49 A2 a2; in test()
54 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
55 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
56 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
83 struct A2 struct
86 virtual ~A2() {} in ~A2() argument
88 A2* getA2() {return this;} in getA2() argument
103 A2 a2; in test()
110 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
111 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
112 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
113 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
134 struct A2 struct
137 virtual ~A2() {} in ~A2() argument
139 A2* getA2() {return this;} in getA2() argument
154 A2 a2; in test()
161 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
162 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
163 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
164 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
185 struct A2 struct
188 virtual ~A2() {} in ~A2() argument
190 A2* getA2() {return this;} in getA2() argument
206 A2 a2; in test()
212 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
213 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
214 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
215 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
236 struct A2 struct
239 virtual ~A2() {} in ~A2() argument
241 A2* getA2() {return this;} in getA2() argument
257 A2 a2; in test()
263 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
264 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
265 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
266 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
295 struct A2 struct
298 virtual ~A2() {} in ~A2() argument
300 A2* getA2() {return this;} in getA2() argument
305 public A2
311 A2* getA2() {return this;} in getA2()
318 A2 a2; in test()
326 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
327 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
328 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
329 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
330 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
352 struct A2 struct
355 virtual ~A2() {} in ~A2() argument
357 A2* getA2() {return this;} in getA2() argument
362 public A2
368 A2* getA2() {return this;} in getA2()
375 A2 a2; in test()
383 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
384 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
385 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
386 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
387 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
409 struct A2 struct
412 virtual ~A2() {} in ~A2() argument
414 A2* getA2() {return this;} in getA2() argument
419 public A2
425 A2* getA2() {return this;} in getA2()
432 A2 a2; in test()
439 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
440 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
441 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
442 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
443 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
465 struct A2 struct
468 virtual ~A2() {} in ~A2() argument
470 A2* getA2() {return this;} in getA2() argument
475 public A2
481 A2* getA2() {return this;} in getA2()
488 A2 a2; in test()
495 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
496 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
497 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
498 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
499 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
521 struct A2 struct
524 virtual ~A2() {} in ~A2() argument
526 A2* getA2() {return this;} in getA2() argument
531 public virtual A2
537 A2* getA2() {return this;} in getA2()
544 A2 a2; in test()
552 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
553 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
554 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
555 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
556 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
578 struct A2 struct
581 virtual ~A2() {} in ~A2() argument
583 A2* getA2() {return this;} in getA2() argument
588 public virtual A2
594 A2* getA2() {return this;} in getA2()
601 A2 a2; in test()
608 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
609 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
610 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
611 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
612 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
634 struct A2 struct
637 virtual ~A2() {} in ~A2() argument
639 A2* getA2() {return this;} in getA2() argument
644 public virtual A2
650 A2* getA2() {return this;} in getA2()
657 A2 a2; in test()
664 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
665 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
666 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
667 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
668 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
690 struct A2 struct
693 virtual ~A2() {} in ~A2() argument
695 A2* getA2() {return this;} in getA2() argument
700 private A2
706 A2* getA2() {return this;} in getA2()
713 A2 a2; in test()
720 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
721 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
722 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
723 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
745 struct A2 struct
748 virtual ~A2() {} in ~A2() argument
750 A2* getA2() {return this;} in getA2() argument
755 private A2
761 A2* getA2() {return this;} in getA2()
768 A2 a2; in test()
775 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
776 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
777 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
778 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
800 struct A2 struct
803 virtual ~A2() {} in ~A2() argument
805 A2* getA2() {return this;} in getA2() argument
810 private virtual A2
816 A2* getA2() {return this;} in getA2()
823 A2 a2; in test()
830 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
831 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
832 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
833 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
865 struct A2 struct
869 virtual ~A2() {} in ~A2() argument
872 A2* getA2() {return this;} in getA2() argument
876 : public A2
882 A2* getA2() {return this;} in getA2()
889 A2 a2; in test()
898 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
899 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
900 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
901 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
902 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
903 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
926 struct A2 struct
930 virtual ~A2() {} in ~A2() argument
933 A2* getA2() {return this;} in getA2() argument
937 : public A2
943 A2* getA2() {return this;} in getA2()
950 A2 a2; in test()
959 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
960 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
961 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
962 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
963 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
964 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
987 struct A2 struct
991 virtual ~A2() {} in ~A2() argument
994 A2* getA2() {return this;} in getA2() argument
998 : public A2
1003 A2* getA2() {return this;} in getA2()
1010 A2 a2; in test()
1016 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1017 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1018 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1019 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1020 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1021 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1044 struct A2 struct
1048 virtual ~A2() {} in ~A2() argument
1051 A2* getA2() {return this;} in getA2() argument
1055 : public A2
1060 A2* getA2() {return this;} in getA2()
1067 A2 a2; in test()
1073 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1074 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1075 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1076 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1077 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1078 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1101 struct A2 struct
1105 virtual ~A2() {} in ~A2() argument
1108 A2* getA2() {return this;} in getA2() argument
1112 : public virtual A2
1118 A2* getA2() {return this;} in getA2()
1125 A2 a2; in test()
1134 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1135 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1136 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1137 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
1138 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1139 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1162 struct A2 struct
1166 virtual ~A2() {} in ~A2() argument
1169 A2* getA2() {return this;} in getA2() argument
1173 : public virtual A2
1178 A2* getA2() {return this;} in getA2()
1185 A2 a2; in test()
1191 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1192 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1193 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1194 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1195 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1196 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1219 struct A2 struct
1223 virtual ~A2() {} in ~A2() argument
1226 A2* getA2() {return this;} in getA2() argument
1230 : public virtual A2
1235 A2* getA2() {return this;} in getA2()
1242 A2 a2; in test()
1248 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1249 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1250 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1251 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1252 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1253 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1276 struct A2 struct
1280 virtual ~A2() {} in ~A2() argument
1283 A2* getA2() {return this;} in getA2() argument
1287 : private A2
1292 t23::A1* getA1() {return A2::getA1();} in getA1()
1293 A2* getA2() {return this;} in getA2()
1300 A2 a2; in test()
1306 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1307 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1308 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1309 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1310 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1333 struct A2 struct
1337 virtual ~A2() {} in ~A2() argument
1340 A2* getA2() {return this;} in getA2() argument
1344 : private A2
1349 t24::A1* getA1() {return A2::getA1();} in getA1()
1350 A2* getA2() {return this;} in getA2()
1357 A2 a2; in test()
1363 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1364 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1365 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1366 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1367 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1390 struct A2 struct
1394 virtual ~A2() {} in ~A2() argument
1397 A2* getA2() {return this;} in getA2() argument
1401 : private virtual A2
1406 t25::A1* getA1() {return A2::getA1();} in getA1()
1407 A2* getA2() {return this;} in getA2()
1414 A2 a2; in test()
1420 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1421 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1422 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1423 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1424 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1457 struct A2 struct
1461 virtual ~A2() {} in ~A2() argument
1464 A2* getA2() {return this;} in getA2() argument
1469 public A2
1474 A1* getA12() {return A2::getA1();} in getA12()
1475 A2* getA2() {return this;} in getA2()
1482 A2 a2; in test()
1490 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1491 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1492 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1493 assert(dynamic_cast<A2*>(a3.getA12()) == a3.getA2()); in test()
1494 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1495 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1518 struct A2 struct
1522 virtual ~A2() {} in ~A2() argument
1525 A2* getA2() {return this;} in getA2() argument
1530 public A2
1535 A1* getA12() {return A2::getA1();} in getA12()
1536 A2* getA2() {return this;} in getA2()
1543 A2 a2; in test()
1549 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1550 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1551 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1552 assert(dynamic_cast<A2*>(a3.getA12()) == 0); in test()
1553 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1554 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1577 struct A2 struct
1581 virtual ~A2() {} in ~A2() argument
1584 A2* getA2() {return this;} in getA2() argument
1589 public A2
1594 A1* getA12() {return A2::getA1();} in getA12()
1595 A2* getA2() {return this;} in getA2()
1602 A2 a2; in test()
1609 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1610 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1611 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1612 assert(dynamic_cast<A2*>(a3.getA12()) == a3.getA2()); in test()
1613 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1614 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1637 struct A2 struct
1641 virtual ~A2() {} in ~A2() argument
1644 A2* getA2() {return this;} in getA2() argument
1649 private A2
1654 A1* getA12() {return A2::getA1();} in getA12()
1655 A2* getA2() {return this;} in getA2()
1662 A2 a2; in test()
1669 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1670 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1671 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1672 assert(dynamic_cast<A2*>(a3.getA12()) == a3.getA2()); in test()
1673 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1696 struct A2 struct
1700 virtual ~A2() {} in ~A2() argument
1703 A2* getA2() {return this;} in getA2() argument
1708 private A2
1713 A1* getA12() {return A2::getA1();} in getA12()
1714 A2* getA2() {return this;} in getA2()
1721 A2 a2; in test()
1729 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1730 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1731 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1732 assert(dynamic_cast<A2*>(a3.getA12()) == a3.getA2()); in test()
1733 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1756 struct A2 struct
1760 virtual ~A2() {} in ~A2() argument
1763 A2* getA2() {return this;} in getA2() argument
1768 private A2
1773 A1* getA12() {return A2::getA1();} in getA12()
1774 A2* getA2() {return this;} in getA2()
1781 A2 a2; in test()
1787 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1788 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1789 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1790 assert(dynamic_cast<A2*>(a3.getA12()) == 0); in test()
1791 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1814 struct A2 struct
1818 virtual ~A2() {} in ~A2() argument
1821 A2* getA2() {return this;} in getA2() argument
1826 public A2
1831 A1* getA12() {return A2::getA1();} in getA12()
1832 A2* getA2() {return this;} in getA2()
1839 A2 a2; in test()
1845 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1846 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1847 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1848 assert(dynamic_cast<A2*>(a3.getA12()) == 0); in test()
1849 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1872 struct A2 struct
1876 virtual ~A2() {} in ~A2() argument
1879 A2* getA2() {return this;} in getA2() argument
1884 private A2
1889 A1* getA12() {return A2::getA1();} in getA12()
1890 A2* getA2() {return this;} in getA2()
1897 A2 a2; in test()
1903 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1904 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1905 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1906 assert(dynamic_cast<A2*>(a3.getA12()) == 0); in test()
1907 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1940 struct A2 struct
1944 virtual ~A2() {} in ~A2() argument
1947 A2* getA2() {return this;} in getA2() argument
1952 public A2
1958 A2* getA2() {return this;} in getA2()
1965 A2 a2; in test()
1974 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1975 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1976 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1977 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
1978 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1979 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
2002 struct A2 struct
2006 virtual ~A2() {} in ~A2() argument
2009 A2* getA2() {return this;} in getA2() argument
2014 public A2
2020 A2* getA2() {return this;} in getA2()
2027 A2 a2; in test()
2034 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2035 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
2036 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2037 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
2038 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2039 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
2062 struct A2 struct
2066 virtual ~A2() {} in ~A2() argument
2069 A2* getA2() {return this;} in getA2() argument
2074 public A2
2080 A2* getA2() {return this;} in getA2()
2087 A2 a2; in test()
2096 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2097 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
2098 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2099 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
2100 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2101 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
2124 struct A2 struct
2128 virtual ~A2() {} in ~A2() argument
2131 A2* getA2() {return this;} in getA2() argument
2136 private A2
2142 A2* getA2() {return this;} in getA2()
2149 A2 a2; in test()
2158 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2159 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
2160 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2161 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
2162 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2185 struct A2 struct
2189 virtual ~A2() {} in ~A2() argument
2192 A2* getA2() {return this;} in getA2() argument
2197 private A2
2203 A2* getA2() {return this;} in getA2()
2210 A2 a2; in test()
2218 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2219 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
2220 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2221 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
2222 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2245 struct A2 struct
2249 virtual ~A2() {} in ~A2() argument
2252 A2* getA2() {return this;} in getA2() argument
2257 private A2
2263 A2* getA2() {return this;} in getA2()
2270 A2 a2; in test()
2277 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2278 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
2279 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2280 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
2281 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2304 struct A2 struct
2308 virtual ~A2() {} in ~A2() argument
2311 A2* getA2() {return this;} in getA2() argument
2316 public A2
2322 A2* getA2() {return this;} in getA2()
2329 A2 a2; in test()
2335 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2336 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
2337 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2338 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
2339 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2340 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
2363 struct A2 struct
2367 virtual ~A2() {} in ~A2() argument
2370 A2* getA2() {return this;} in getA2() argument
2375 private A2
2381 A2* getA2() {return this;} in getA2()
2388 A2 a2; in test()
2394 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2395 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
2396 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2397 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
2398 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()