1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-add-options bind_pic_locally } */
5 typedef struct A
{ int a
,b
; } A
;
6 int*g(int*x
){return x
;}
9 return g(&x
[1].a
); // { dg-warning "returns address of local variable" }
13 return n
?0:g(&x
[1].a
); // { dg-warning "may return address of local variable" }
24 return p
; // { dg-warning "may return address of local variable" }