Lines Matching refs:A2
29 struct A2 struct
32 virtual ~A2() {} in ~A2() argument
34 A2* getA2() {return this;} in getA2() argument
48 A2 a2; in test()
53 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
54 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
55 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
82 struct A2 struct
85 virtual ~A2() {} in ~A2() argument
87 A2* getA2() {return this;} in getA2() argument
102 A2 a2; in test()
109 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
110 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
111 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
112 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
133 struct A2 struct
136 virtual ~A2() {} in ~A2() argument
138 A2* getA2() {return this;} in getA2() argument
153 A2 a2; in test()
160 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
161 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
162 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
163 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
184 struct A2 struct
187 virtual ~A2() {} in ~A2() argument
189 A2* getA2() {return this;} in getA2() argument
205 A2 a2; in test()
211 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
212 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
213 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
214 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
235 struct A2 struct
238 virtual ~A2() {} in ~A2() argument
240 A2* getA2() {return this;} in getA2() argument
256 A2 a2; in test()
262 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
263 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
264 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
265 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
294 struct A2 struct
297 virtual ~A2() {} in ~A2() argument
299 A2* getA2() {return this;} in getA2() argument
304 public A2
310 A2* getA2() {return this;} in getA2()
317 A2 a2; in test()
325 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
326 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
327 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
328 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
329 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
351 struct A2 struct
354 virtual ~A2() {} in ~A2() argument
356 A2* getA2() {return this;} in getA2() argument
361 public A2
367 A2* getA2() {return this;} in getA2()
374 A2 a2; in test()
382 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
383 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
384 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
385 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
386 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
408 struct A2 struct
411 virtual ~A2() {} in ~A2() argument
413 A2* getA2() {return this;} in getA2() argument
418 public A2
424 A2* getA2() {return this;} in getA2()
431 A2 a2; in test()
438 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
439 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
440 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
441 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
442 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
464 struct A2 struct
467 virtual ~A2() {} in ~A2() argument
469 A2* getA2() {return this;} in getA2() argument
474 public A2
480 A2* getA2() {return this;} in getA2()
487 A2 a2; in test()
494 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
495 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
496 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
497 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
498 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
520 struct A2 struct
523 virtual ~A2() {} in ~A2() argument
525 A2* getA2() {return this;} in getA2() argument
530 public virtual A2
536 A2* getA2() {return this;} in getA2()
543 A2 a2; in test()
551 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
552 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
553 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
554 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
555 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
577 struct A2 struct
580 virtual ~A2() {} in ~A2() argument
582 A2* getA2() {return this;} in getA2() argument
587 public virtual A2
593 A2* getA2() {return this;} in getA2()
600 A2 a2; in test()
607 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
608 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
609 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
610 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
611 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
633 struct A2 struct
636 virtual ~A2() {} in ~A2() argument
638 A2* getA2() {return this;} in getA2() argument
643 public virtual A2
649 A2* getA2() {return this;} in getA2()
656 A2 a2; in test()
663 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
664 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
665 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
666 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
667 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
689 struct A2 struct
692 virtual ~A2() {} in ~A2() argument
694 A2* getA2() {return this;} in getA2() argument
699 private A2
705 A2* getA2() {return this;} in getA2()
712 A2 a2; in test()
719 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
720 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
721 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
722 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
744 struct A2 struct
747 virtual ~A2() {} in ~A2() argument
749 A2* getA2() {return this;} in getA2() argument
754 private A2
760 A2* getA2() {return this;} in getA2()
767 A2 a2; in test()
774 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
775 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
776 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
777 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
799 struct A2 struct
802 virtual ~A2() {} in ~A2() argument
804 A2* getA2() {return this;} in getA2() argument
809 private virtual A2
815 A2* getA2() {return this;} in getA2()
822 A2 a2; in test()
829 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
830 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
831 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
832 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
864 struct A2 struct
868 virtual ~A2() {} in ~A2() argument
871 A2* getA2() {return this;} in getA2() argument
875 : public A2
881 A2* getA2() {return this;} in getA2()
888 A2 a2; in test()
897 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
898 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
899 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
900 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
901 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
902 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
925 struct A2 struct
929 virtual ~A2() {} in ~A2() argument
932 A2* getA2() {return this;} in getA2() argument
936 : public A2
942 A2* getA2() {return this;} in getA2()
949 A2 a2; in test()
958 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
959 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
960 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
961 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
962 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
963 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
986 struct A2 struct
990 virtual ~A2() {} in ~A2() argument
993 A2* getA2() {return this;} in getA2() argument
997 : public A2
1002 A2* getA2() {return this;} in getA2()
1009 A2 a2; in test()
1015 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1016 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1017 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1018 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1019 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1020 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1043 struct A2 struct
1047 virtual ~A2() {} in ~A2() argument
1050 A2* getA2() {return this;} in getA2() argument
1054 : public A2
1059 A2* getA2() {return this;} in getA2()
1066 A2 a2; in test()
1072 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1073 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1074 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1075 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1076 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1077 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1100 struct A2 struct
1104 virtual ~A2() {} in ~A2() argument
1107 A2* getA2() {return this;} in getA2() argument
1111 : public virtual A2
1117 A2* getA2() {return this;} in getA2()
1124 A2 a2; in test()
1133 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1134 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1135 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1136 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
1137 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1138 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1161 struct A2 struct
1165 virtual ~A2() {} in ~A2() argument
1168 A2* getA2() {return this;} in getA2() argument
1172 : public virtual A2
1177 A2* getA2() {return this;} in getA2()
1184 A2 a2; in test()
1190 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1191 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1192 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1193 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1194 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1195 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1218 struct A2 struct
1222 virtual ~A2() {} in ~A2() argument
1225 A2* getA2() {return this;} in getA2() argument
1229 : public virtual A2
1234 A2* getA2() {return this;} in getA2()
1241 A2 a2; in test()
1247 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1248 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1249 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1250 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1251 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1252 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1275 struct A2 struct
1279 virtual ~A2() {} in ~A2() argument
1282 A2* getA2() {return this;} in getA2() argument
1286 : private A2
1291 t23::A1* getA1() {return A2::getA1();} in getA1()
1292 A2* getA2() {return this;} in getA2()
1299 A2 a2; in test()
1305 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1306 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1307 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1308 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1309 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1332 struct A2 struct
1336 virtual ~A2() {} in ~A2() argument
1339 A2* getA2() {return this;} in getA2() argument
1343 : private A2
1348 t24::A1* getA1() {return A2::getA1();} in getA1()
1349 A2* getA2() {return this;} in getA2()
1356 A2 a2; in test()
1362 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1363 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1364 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1365 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1366 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1389 struct A2 struct
1393 virtual ~A2() {} in ~A2() argument
1396 A2* getA2() {return this;} in getA2() argument
1400 : private virtual A2
1405 t25::A1* getA1() {return A2::getA1();} in getA1()
1406 A2* getA2() {return this;} in getA2()
1413 A2 a2; in test()
1419 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1420 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1421 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1422 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
1423 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1456 struct A2 struct
1460 virtual ~A2() {} in ~A2() argument
1463 A2* getA2() {return this;} in getA2() argument
1468 public A2
1473 A1* getA12() {return A2::getA1();} in getA12()
1474 A2* getA2() {return this;} in getA2()
1481 A2 a2; in test()
1489 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1490 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1491 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1492 assert(dynamic_cast<A2*>(a3.getA12()) == a3.getA2()); in test()
1493 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1494 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1517 struct A2 struct
1521 virtual ~A2() {} in ~A2() argument
1524 A2* getA2() {return this;} in getA2() argument
1529 public A2
1534 A1* getA12() {return A2::getA1();} in getA12()
1535 A2* getA2() {return this;} in getA2()
1542 A2 a2; in test()
1548 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1549 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1550 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1551 assert(dynamic_cast<A2*>(a3.getA12()) == 0); in test()
1552 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1553 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1576 struct A2 struct
1580 virtual ~A2() {} in ~A2() argument
1583 A2* getA2() {return this;} in getA2() argument
1588 public A2
1593 A1* getA12() {return A2::getA1();} in getA12()
1594 A2* getA2() {return this;} in getA2()
1601 A2 a2; in test()
1608 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1609 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1610 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1611 assert(dynamic_cast<A2*>(a3.getA12()) == a3.getA2()); in test()
1612 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1613 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1636 struct A2 struct
1640 virtual ~A2() {} in ~A2() argument
1643 A2* getA2() {return this;} in getA2() argument
1648 private A2
1653 A1* getA12() {return A2::getA1();} in getA12()
1654 A2* getA2() {return this;} in getA2()
1661 A2 a2; in test()
1668 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1669 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1670 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1671 assert(dynamic_cast<A2*>(a3.getA12()) == a3.getA2()); in test()
1672 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1695 struct A2 struct
1699 virtual ~A2() {} in ~A2() argument
1702 A2* getA2() {return this;} in getA2() argument
1707 private A2
1712 A1* getA12() {return A2::getA1();} in getA12()
1713 A2* getA2() {return this;} in getA2()
1720 A2 a2; in test()
1728 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1729 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1730 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1731 assert(dynamic_cast<A2*>(a3.getA12()) == a3.getA2()); in test()
1732 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1755 struct A2 struct
1759 virtual ~A2() {} in ~A2() argument
1762 A2* getA2() {return this;} in getA2() argument
1767 private A2
1772 A1* getA12() {return A2::getA1();} in getA12()
1773 A2* getA2() {return this;} in getA2()
1780 A2 a2; in test()
1786 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1787 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1788 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1789 assert(dynamic_cast<A2*>(a3.getA12()) == 0); in test()
1790 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1813 struct A2 struct
1817 virtual ~A2() {} in ~A2() argument
1820 A2* getA2() {return this;} in getA2() argument
1825 public A2
1830 A1* getA12() {return A2::getA1();} in getA12()
1831 A2* getA2() {return this;} in getA2()
1838 A2 a2; in test()
1844 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1845 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1846 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1847 assert(dynamic_cast<A2*>(a3.getA12()) == 0); in test()
1848 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1871 struct A2 struct
1875 virtual ~A2() {} in ~A2() argument
1878 A2* getA2() {return this;} in getA2() argument
1883 private A2
1888 A1* getA12() {return A2::getA1();} in getA12()
1889 A2* getA2() {return this;} in getA2()
1896 A2 a2; in test()
1902 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1903 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
1904 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1905 assert(dynamic_cast<A2*>(a3.getA12()) == 0); in test()
1906 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1939 struct A2 struct
1943 virtual ~A2() {} in ~A2() argument
1946 A2* getA2() {return this;} in getA2() argument
1951 public A2
1957 A2* getA2() {return this;} in getA2()
1964 A2 a2; in test()
1973 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1974 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
1975 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1976 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
1977 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1978 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
2001 struct A2 struct
2005 virtual ~A2() {} in ~A2() argument
2008 A2* getA2() {return this;} in getA2() argument
2013 public A2
2019 A2* getA2() {return this;} in getA2()
2026 A2 a2; in test()
2033 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2034 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
2035 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2036 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
2037 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2038 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
2061 struct A2 struct
2065 virtual ~A2() {} in ~A2() argument
2068 A2* getA2() {return this;} in getA2() argument
2073 public A2
2079 A2* getA2() {return this;} in getA2()
2086 A2 a2; in test()
2095 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2096 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
2097 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2098 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
2099 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2100 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
2123 struct A2 struct
2127 virtual ~A2() {} in ~A2() argument
2130 A2* getA2() {return this;} in getA2() argument
2135 private A2
2141 A2* getA2() {return this;} in getA2()
2148 A2 a2; in test()
2157 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2158 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
2159 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2160 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
2161 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2184 struct A2 struct
2188 virtual ~A2() {} in ~A2() argument
2191 A2* getA2() {return this;} in getA2() argument
2196 private A2
2202 A2* getA2() {return this;} in getA2()
2209 A2 a2; in test()
2217 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2218 assert(dynamic_cast<A2*>(a2.getA1()) == a2.getA2()); in test()
2219 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2220 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
2221 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2244 struct A2 struct
2248 virtual ~A2() {} in ~A2() argument
2251 A2* getA2() {return this;} in getA2() argument
2256 private A2
2262 A2* getA2() {return this;} in getA2()
2269 A2 a2; in test()
2276 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2277 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
2278 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2279 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
2280 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2303 struct A2 struct
2307 virtual ~A2() {} in ~A2() argument
2310 A2* getA2() {return this;} in getA2() argument
2315 public A2
2321 A2* getA2() {return this;} in getA2()
2328 A2 a2; in test()
2334 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2335 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
2336 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2337 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
2338 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
2339 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
2362 struct A2 struct
2366 virtual ~A2() {} in ~A2() argument
2369 A2* getA2() {return this;} in getA2() argument
2374 private A2
2380 A2* getA2() {return this;} in getA2()
2387 A2 a2; in test()
2393 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
2394 assert(dynamic_cast<A2*>(a2.getA1()) == 0); in test()
2395 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
2396 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
2397 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()