summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wunused-label-1.c
blob: 1840a8008f4295aa56e96b190a7f5cb2c084f807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-Wunused-label" } */

extern void f2 ();

void
f1 ()
{
 l1: f2 ();				/* { dg-warning "not used" } */
 l2: __attribute__ ((unused)) f2 ();
 l3: ; f2 ();				/* { dg-warning "not used" } */
 l4: __attribute__ ((unused)) ; f2 ();
}