* gcc.dg/unused-2.c: New test.
From-SVN: r31627
This commit is contained in:
parent
3ebed0b2f8
commit
3f50679d00
2 changed files with 20 additions and 0 deletions
|
@ -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>
|
||||
|
|
18
gcc/testsuite/gcc.dg/unused-2.c
Normal file
18
gcc/testsuite/gcc.dg/unused-2.c
Normal 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 ();
|
||||
}
|
Loading…
Add table
Reference in a new issue