2 /* { dg-do compile } */
7 lab
: /* { dg-line foo_lab } */
9 /* { dg-warning "function returns address of label" "" { target c } .-1 } */
10 /* { dg-warning "address of label" "" { target c++ } foo_lab } */
17 lab
: /* { dg-line bar_lab } */
19 /* { dg-warning "function returns address of label" "" { target c } .-1 } */
20 /* { dg-warning "address of label" "" { target c++ } bar_lab } */
26 int i
; /* { dg-line baz_i } */
28 /* { dg-warning "function returns address of local variable" "" { target c } .-1 } */
29 /* { dg-warning "address of local variable" "" { target c++ } baz_i } */