blob: 6f44ac9b110013aee88e274bfa45b7cc7f792a0b [file] [log] [blame]
/* PR c/43395 */
/* { dg-do compile } */
/* { dg-require-effective-target label_values } */
void *
foo (void)
{
lab:
return &&lab;
/* { dg-warning "address of label" "" { target *-*-* } .-1 } */
}
void *
bar (void)
{
__label__ lab;
lab:
return &&lab;
/* { dg-warning "address of label" "" { target *-*-* } .-1 } */
}
void *
baz (void)
{
int i;
return &i;
/* { dg-warning "address of local variable" "" { target *-*-* } .-1 } */
}