Lines Matching refs:bp2
52 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2) {
56 (void)static_cast<A_ptr_2>(bp2);
73 (void)static_cast<A_ptr>(bp2); // expected-error{{is not allowed}}
75 (void)static_cast<A_ptr_1>(bp2); // expected-error{{is not allowed}}
103 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2) {
107 (void)dynamic_cast<A_ptr_2>(bp2);
116 (void)dynamic_cast<A_ptr>(bp2); // expected-error{{casts away qualifiers}}
118 (void)dynamic_cast<A_ptr_1>(bp2); // expected-error{{casts away qualifiers}}
133 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2,
140 (void)reinterpret_cast<A_ptr>(bp2);
148 (void)reinterpret_cast<A_ptr_1>(bp2);
159 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2,
166 (void)(A_ptr)(bp2);
174 (void)(A_ptr_1)(bp2);
183 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2) {
190 A_ptr_2 ap_A2 = bp2;
196 A_ptr_1 ap_B1 = bp2; // expected-error{{cannot initialize a variable of type}}