2 /* { dg-do compile } */
3 /* { dg-require-effective-target label_values } */
8 lab
: /* { dg-line foo_lab } */
10 /* { dg-warning "function returns address of label" "" { target c } .-1 } */
11 /* { dg-warning "address of label" "" { target c++ } foo_lab } */
18 lab
: /* { dg-line bar_lab } */
20 /* { dg-warning "function returns address of label" "" { target c } .-1 } */
21 /* { dg-warning "address of label" "" { target c++ } bar_lab } */
27 int i
; /* { dg-line baz_i } */
29 /* { dg-warning "function returns address of local variable" "" { target c } .-1 } */
30 /* { dg-warning "address of local variable" "" { target c++ } baz_i } */