Lines Matching refs:A_ptr

17 typedef A *A_ptr;  typedef
26 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_const_cast()
38 (void)const_cast<A_ptr>(ap1); // expected-error{{is not allowed}} in test_const_cast()
39 (void)const_cast<A_ptr>(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()
54 (void)static_cast<A_ptr>(bp); in test_static_cast()
67 (void)static_cast<A_ptr>(vp); in test_static_cast()
72 (void)static_cast<A_ptr>(bp1); // expected-error{{is not allowed}} in test_static_cast()
73 (void)static_cast<A_ptr>(bp2); // expected-error{{is not allowed}} in test_static_cast()
94 (void)static_cast<A_ptr>(vp1); // expected-error{{casts away qualifiers}} in test_static_cast()
95 (void)static_cast<A_ptr>(vp2); // expected-error{{casts away qualifiers}} in test_static_cast()
102 void test_dynamic_cast(A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_dynamic_cast()
105 (void)dynamic_cast<A_ptr>(bp); in test_dynamic_cast()
115 (void)dynamic_cast<A_ptr>(bp1); // expected-error{{casts away qualifiers}} in test_dynamic_cast()
116 (void)dynamic_cast<A_ptr>(bp2); // 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()
136 …(void)reinterpret_cast<A_ptr>(ap1); // expected-error{{reinterpret_cast from 'A_ptr_1' (aka '__att… in test_reinterpret_cast()
137 …(void)reinterpret_cast<A_ptr>(ap2); // expected-error{{reinterpret_cast from 'A_ptr_2' (aka '__att… in test_reinterpret_cast()
138 (void)reinterpret_cast<A_ptr>(bp); in test_reinterpret_cast()
139 …(void)reinterpret_cast<A_ptr>(bp1); // expected-error{{reinterpret_cast from 'B_ptr_1' (aka '__att… in test_reinterpret_cast()
140 …(void)reinterpret_cast<A_ptr>(bp2); // expected-error{{reinterpret_cast from 'B_ptr_2' (aka '__att… in test_reinterpret_cast()
141 (void)reinterpret_cast<A_ptr>(vp); in test_reinterpret_cast()
142 …(void)reinterpret_cast<A_ptr>(vp1); // expected-error{{reinterpret_cast from 'void_ptr_1' (aka '… in test_reinterpret_cast()
143 …(void)reinterpret_cast<A_ptr>(vp2); // expected-error{{reinterpret_cast from 'void_ptr_2' (aka '… in test_reinterpret_cast()
158 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_cstyle_cast()
162 (void)(A_ptr)(ap1); in test_cstyle_cast()
163 (void)(A_ptr)(ap2); in test_cstyle_cast()
164 (void)(A_ptr)(bp); in test_cstyle_cast()
165 (void)(A_ptr)(bp1); in test_cstyle_cast()
166 (void)(A_ptr)(bp2); in test_cstyle_cast()
167 (void)(A_ptr)(vp); in test_cstyle_cast()
168 (void)(A_ptr)(vp1); in test_cstyle_cast()
169 (void)(A_ptr)(vp2); in test_cstyle_cast()
182 A_ptr ap, A_ptr_1 ap1, A_ptr_2 ap2, in test_implicit_conversion()
188 A_ptr ap_A = bp; in test_implicit_conversion()
195 A_ptr ap_B = bp1; // expected-error{{cannot initialize a variable of type}} in test_implicit_conversion()