Lines Matching refs:ap
26 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2,
40 (void)const_cast<A_ptr_1>(ap); // expected-error{{is not allowed}}
42 (void)const_cast<A_ptr_2>(ap); // expected-error{{is not allowed}}
51 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2,
59 (void)static_cast<B_ptr>(ap);
64 (void)static_cast<void_ptr>(ap);
82 (void)static_cast<B_ptr_1>(ap); // expected-error{{casts away qualifiers}}
84 (void)static_cast<B_ptr_2>(ap); // expected-error{{casts away qualifiers}}
90 (void)static_cast<void_ptr_1>(ap); // expected-error{{is not allowed}}
92 (void)static_cast<void_ptr_2>(ap); // expected-error{{is not allowed}}
102 void test_dynamic_cast(A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2,
110 (void)dynamic_cast<B_ptr>(ap);
125 (void)dynamic_cast<B_ptr_1>(ap); // expected-error{{casts away qualifiers}}
127 (void)dynamic_cast<B_ptr_2>(ap); // expected-error{{casts away qualifiers}}
132 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2,
144 (void)reinterpret_cast<A_ptr_1>(ap);
158 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2,
170 (void)(A_ptr_1)(ap);
182 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2,
185 void_ptr vpA = ap;