return&x;// expected-warning{{Address of stack-allocated variable returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
}
int*f2(inty){
return&y;// expected-warning{{Address of stack-allocated variable returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}}
}
int*f3(intx,int*y){
intw=0;
if(x)
y=&w;
returny;// expected-warning{{Address of stack-allocated variable returned.}}