return(double)2.0;// expected-error {{incompatible type returning 'double', expected 'float'}}
return1;// expected-error {{incompatible type returning 'int', expected 'float'}}
};
char*(^B)(void)=^{
if(3)
return"";
else
return2;// expected-error {{incompatible type returning 'int', expected 'char *'}}
};
return^{return1;};// expected-error {{incompatible block pointer types returning 'int (^)(void)', expected 'CL'}} expected-error {{returning block that lives on the local stack}}
}
typedefint(^CL2)(void);
CL2foo2(){
return^{return1;};// expected-error {{returning block that lives on the local stack}}