aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/unused-2.c
blob: 454606ec95ee3760b966865892e068e25ff58ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright (C) 2000  Free Software Foundation.

   by Alexandre Oliva  <oliva@lsd.ic.unicamp.br>  */

/* { dg-do compile } */
/* { dg-options "-O2 -finline-functions -Wunused -Wreturn-type" } */

static void
foo ()
{
  skip_it: ; /* { dg-warning "defined but not used" "unused label warning" } */
}

void
bar ()
{
  foo ();
}