warn-access: wrong -Wdangling-pointer with labels [PR106080]
[official-gcc.git] / gcc / testsuite / c-c++-common / Wdangling-pointer-9.c
blobf6c92855404d8dcbeb13cd0ccf0747ee6b77620b
1 /* PR middle-end/106080 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wdangling-pointer" } */
5 void
6 foo (void **failaddr)
8 *failaddr = ({ __label__ __here; __here: &&__here; }); /* { dg-bogus "address of local variable" } */