Lines Matching full:void
23 void t_cc()
64 void t_529_2()
67 (void)(float)(i);
69 (void)(float)(d);
70 (void)(int)(d);
71 (void)(char)(i);
72 (void)(unsigned long)(i);
73 (void)(int)(En1);
74 (void)(double)(En1);
75 (void)(int&)(i);
76 (void)(const int&)(i);
79 (void)(const int*)(ar);
80 (void)(void (*)())(t_529_2);
82 (void)(void*)(0);
83 (void)(void*)((int*)0);
84 (void)(volatile const void*)((const int*)0);
85 (void)(A*)((B*)0);
86 (void)(A&)(*((B*)0));
87 (void)(const B*)((C1*)0);
88 (void)(B&)(*((C1*)0));
89 (void)(A*)((D*)0);
90 (void)(const A&)(*((D*)0));
91 (void)(int B::*)((int A::*)0);
92 (void)(void (B::*)())((void (A::*)())0);
93 (void)(A*)((E*)0); // C-style cast ignores access control
94 (void)(void*)((const int*)0); // const_cast appended
96 (void)(int)(Co1());
97 (void)(Co2)(1);
98 (void)(Co3)((Co4)(Co3()));
101 //(void)(A*)((H*)0); // {{static_cast from 'struct H *' to 'struct A *' is not allowed}}
104 // Anything to void
105 void t_529_4()
107 (void)(1);
108 (void)(t_529_4);
112 void t_529_5_8()
114 (void)(B*)((A*)0);
115 (void)(B&)(*((A*)0));
116 (void)(const G1*)((A*)0);
117 (void)(const G1&)(*((A*)0));
118 (void)(B*)((const A*)0); // const_cast appended
119 (void)(B&)(*((const A*)0)); // const_cast appended
120 (void)(E*)((A*)0); // access control ignored
121 (void)(E&)(*((A*)0)); // access control ignored
125 (void)(C1*)((A*)0); // expected-error {{cannot cast 'A *' to 'C1 *' via virtual base 'B'}}
126 (void)(C1&)(*((A*)0)); // expected-error {{cannot cast 'A' to 'C1 &' via virtual base 'B'}}
127 (void)(D*)((A*)0); // expected-error {{cannot cast 'A *' to 'D *' via virtual base 'B'}}
128 (void)(D&)(*((A*)0)); // expected-error {{cannot cast 'A' to 'D &' via virtual base 'B'}}
129 (void)(H*)((A*)0); // expected-error {{ambiguous cast from base 'A' to derived 'H':\n struct A -> struct B -> struct G1 -> struct H\n struct A -> struct B -> struct G2 -> struct H}}
130 (void)(H&)(*((A*)0)); // expected-error {{ambiguous cast from base 'A' to derived 'H':\n struct A -> struct B -> struct G1 -> struct H\n struct A -> struct B -> struct G2 -> struct H}}
136 void t_529_7()
138 (void)(Enum)(1);
139 (void)(Enum)(1.0);
140 (void)(Onom)(En1);
144 (void)(Enum)((int*)0); // expected-error {{C-style cast from 'int *' to 'Enum' is not allowed}}
147 // Void pointer to object pointer
148 void t_529_10()
150 (void)(int*)((void*)0);
151 (void)(const A*)((void*)0);
152 (void)(int*)((const void*)0); // const_cast appended
156 void t_529_9()
158 (void)(int A::*)((int B::*)0);
161 (void)(int A::*)((int H::*)0); // expected-error {{ambiguous conversion from pointer to member of derived class 'H' to pointer to member of base class 'A':}}
162 (void)(int A::*)((int F::*)0); // expected-error {{conversion from pointer to member of class 'F' to pointer to member of class 'A' via virtual base 'B' is not allowed}}
169 typedef void (*fnptr)();
172 void integral_conversion()
174 void *vp = (void*)(testval);
176 (void)(float*)(l);
178 (void)(char)(fnp); // expected-error {{cast from pointer to smaller type 'char' loses information}}
179 (void)(long)(fnp);
182 void pointer_conversion()
189 (void)(fnptr*)(deep);
192 void constness()
196 (void)(int*)(icp); // const_cast appended
199 (void)(int const*)(ip);
200 (void)(int const* const* const*)(ipppc);
203 void fnptrs()
207 (void)(fnptr2)(fp);
208 void *vp = (void*)(fp);
209 (void)(fnptr)(vp);
212 void refs()
217 (void)(int&)(&c); // expected-error {{C-style cast from rvalue to reference type 'int &'}}
220 void memptrs()
223 (void)(const float structure::*)(psi);
224 (void)(int structure::*)(psi); // const_cast appended
226 void (structure::*psf)() = 0;
227 (void)(int (structure::*)())(psf);
229 (void)(void (structure::*)())(psi); // expected-error {{C-style cast from 'const int structure::*' to 'void (structure::*)()' is not allowed}}
230 (void)(int structure::*)(psf); // expected-error {{C-style cast from 'void (structure::*)()' to 'int structure::*' is not allowed}}