Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / c-c++-common / pr43395.c
blob6f44ac9b110013aee88e274bfa45b7cc7f792a0b
1 /* PR c/43395 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target label_values } */
5 void *
6 foo (void)
8 lab:
9 return &&lab;
10 /* { dg-warning "address of label" "" { target *-*-* } .-1 } */
13 void *
14 bar (void)
16 __label__ lab;
17 lab:
18 return &&lab;
19 /* { dg-warning "address of label" "" { target *-*-* } .-1 } */
22 void *
23 baz (void)
25 int i;
26 return &i;
27 /* { dg-warning "address of local variable" "" { target *-*-* } .-1 } */