Lines Matching refs:bp1
52 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2) { in test_static_cast() argument
55 (void)static_cast<A_ptr_1>(bp1); in test_static_cast()
72 (void)static_cast<A_ptr>(bp1); // expected-error{{is not allowed}} in test_static_cast()
77 (void)static_cast<A_ptr_2>(bp1); // expected-error{{is not allowed}} in test_static_cast()
103 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2) { in test_dynamic_cast() argument
106 (void)dynamic_cast<A_ptr_1>(bp1); in test_dynamic_cast()
115 (void)dynamic_cast<A_ptr>(bp1); // expected-error{{casts away qualifiers}} in test_dynamic_cast()
120 (void)dynamic_cast<A_ptr_2>(bp1); // expected-error{{casts away qualifiers}} in test_dynamic_cast()
133 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2, in test_reinterpret_cast() argument
139 …(void)reinterpret_cast<A_ptr>(bp1); // expected-error{{reinterpret_cast from 'B_ptr_1' (aka '__att… in test_reinterpret_cast()
147 (void)reinterpret_cast<A_ptr_1>(bp1); in test_reinterpret_cast()
159 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2, in test_cstyle_cast() argument
165 (void)(A_ptr)(bp1); in test_cstyle_cast()
173 (void)(A_ptr_1)(bp1); in test_cstyle_cast()
183 B_ptr bp, B_ptr_1 bp1, B_ptr_2 bp2) { in test_implicit_conversion() argument
189 A_ptr_1 ap_A1 = bp1; in test_implicit_conversion()
195 A_ptr ap_B = bp1; // expected-error{{cannot initialize a variable of type}} in test_implicit_conversion()