Lines Matching refs:ap2
26 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_const_cast() argument
39 (void)const_cast<A_ptr>(ap2); // expected-error{{is not allowed}} in test_const_cast()
41 (void)const_cast<A_ptr_1>(ap2); // expected-error{{is not allowed}} in test_const_cast()
51 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_static_cast() argument
61 (void)static_cast<B_ptr_2>(ap2); in test_static_cast()
66 (void)static_cast<void_ptr_2>(ap2); in test_static_cast()
81 (void)static_cast<B_ptr>(ap2); // expected-error{{casts away qualifiers}} in test_static_cast()
83 (void)static_cast<B_ptr_1>(ap2); // expected-error{{casts away qualifiers}} in test_static_cast()
89 (void)static_cast<void_ptr>(ap2); // expected-error{{is not allowed}} in test_static_cast()
91 (void)static_cast<void_ptr_1>(ap2); // expected-error{{is not allowed}} in test_static_cast()
102 void test_dynamic_cast(A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_dynamic_cast() argument
112 (void)dynamic_cast<B_ptr_2>(ap2); in test_dynamic_cast()
124 (void)dynamic_cast<B_ptr>(ap2); // expected-error{{casts away qualifiers}} in test_dynamic_cast()
126 (void)dynamic_cast<B_ptr_1>(ap2); // expected-error{{casts away qualifiers}} in test_dynamic_cast()
132 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_reinterpret_cast() argument
137 (void)reinterpret_cast<A_ptr>(ap2); in test_reinterpret_cast()
145 (void)reinterpret_cast<A_ptr_1>(ap2); in test_reinterpret_cast()
158 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_cstyle_cast() argument
163 (void)(A_ptr)(ap2); in test_cstyle_cast()
171 (void)(A_ptr_1)(ap2); in test_cstyle_cast()
182 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_implicit_conversion() argument
187 void_ptr_2 vp_2A = ap2; in test_implicit_conversion()
194 void_ptr_1 vp_1B = ap2; // expected-error{{cannot initialize a variable of type}} in test_implicit_conversion()