* gcc.dg/unused-2.c: New test.

From-SVN: r31627
This commit is contained in:
Alexandre Oliva 2000-01-26 07:15:01 +00:00 committed by Alexandre Oliva
parent 3ebed0b2f8
commit 3f50679d00
2 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* gcc.dg/unused-2.c: New test.
* gcc.dg/conv-1.c: New test.
2000-01-24 Mark Mitchell <mark@codesourcery.com>

View File

@ -0,0 +1,18 @@
/* Copyright (C) 2000 Free Software Foundation.
by Alexandre Oliva <oliva@lsd.ic.unicamp.br> */
/* { dg-do compile } */
/* { dg-options "-O2 -finline-functions -Wall" } */
static void
foo ()
{
skip_it: ; /* { dg-warning "unused label" "unused label warning" } */
}
void
bar ()
{
foo ();
}