]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/20040223-1.c
1 /* GCC was not warning about taking the address of parameters or
2 fields of struct parameters when returning them. */
5 /* { dg-do compile } */
10 return &a
;/* { dg-warning "address" "" } */
16 return &b
;/* { dg-warning "address" "" } */
26 return &c
.i
;/* { dg-warning "address" "" } */
34 return &d
.i
;/* { dg-bogus "address" "" } */
40 return &c
->i
; /* { dg-bogus "address" "" } */