* tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new block.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20040223-1.c
blob36d7ee767d997de46b594e8c6d84f80c8720a488
1 /* GCC was not warning about taking the address of paramaters or
2 fields of struct paramaters when returning them. */
3 /* PR c/14156 */
5 /* { dg-do compile } */
8 int * f( int a)
10 return &a;/* { dg-warning "address" "" } */
13 int * g()
15 int b = 0;
16 return &b;/* { dg-warning "address" "" } */
19 struct ll
21 int i;
24 int *h(struct ll c)
26 return &c.i;/* { dg-warning "address" "" } */
30 struct ll d;
32 int *i()
34 return &d.i;/* { dg-bogus "address" "" } */
38 int *j(struct ll *c)
40 return &c->i; /* { dg-bogus "address" "" } */