Home | History | Annotate | Download | only in Sema

Lines Matching full:void

2 void donotwarn();
32 double (^I)(int) = (void*) S;
33 (void*)I = (void *)S; // expected-error {{assignment to cast is illegal, lvalue casts are not supported}}
35 void *pv = I;
41 return (void*)I == (void *)S;
47 void test3() {
67 void bar(void*);
70 void test5() {
82 void (^test7a)();
83 int test7(void (^p)()) {
88 void test8() {
93 void test9() {
98 void test10(int i) {
105 void test11(int i) {
115 void (^test12f)(void);
116 void test12() {
121 void *test13 = ^{
124 void *P = ^{
129 void test14() {
131 static void *P = ^{ // expected-error {{initializer element is not a compile-time constant}}
133 void *Q = ^{
142 void foo(long (^comp)()) { // expected-note{{passing argument to parameter 'comp' here}}
145 void (^test15f)(void);
146 void test15() {
147 foo(^{ return LESS; }); // expected-error {{incompatible block pointer types passing 'int (^)(void)' to parameter of type 'long (^)()'}}
152 void test16(__block int i) { // expected-error {{__block attribute not allowed, only allowed on local variables}}
160 void f();
162 void test17() {
163 void (^bp)(int);
164 void (*rp)(int);
165 void (^bp1)();
166 void *vp = bp;
171 (void)(bp > rp); // expected-error {{invalid operands}}
172 (void)(bp > 0); // expected-error {{invalid operands}}
173 (void)(bp > bp); // expected-error {{invalid operands}}
174 (void)(bp > vp); // expected-error {{invalid operands}}
175 f(1 ? bp : rp); // expected-error {{incompatible operand types ('void (^)(int)' and 'void (*)(int)')}}
176 (void)(bp == 1); // expected-error {{invalid operands to binary expression}}
177 (void)(bp == 0);
178 (void)(1 == bp); // expected-error {{invalid operands to binary expression}}
179 (void)(0 == bp);
180 (void)(bp < 1); // expected-error {{invalid operands to binary expression}}
181 (void)(bp < 0); // expected-error {{invalid operands to binary expression}}
182 (void)(1 < bp); // expected-error {{invalid operands to binary expression}}
183 (void)(0 < bp); // expected-error {{invalid operands to binary expression}}
186 void test18() {
187 void (^const blockA)(void) = ^{ };
203 void test20() {
209 (void)vla[1]; // expected-error {{cannot refer to declaration with a variably modified type inside block}}
210 (void)(vm+1); // expected-error {{cannot refer to declaration with a variably modified type inside block}}
215 void test21() {
220 (void)a[1]; // expected-error {{cannot refer to declaration with an array type inside block}}
221 (void)b[1]; // expected-error {{cannot refer to declaration with an array type inside block}}
226 const char * (^func)(void) = ^{ return __func__; };
227 const char * (^function)(void) = ^{ return __FUNCTION__; };
228 const char * (^pretty)(void) = ^{ return __PRETTY_FUNCTION__; };