From: Alexandre Oliva Date: Wed, 26 Jan 2000 07:15:01 +0000 (+0000) Subject: * gcc.dg/unused-2.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f50679d00307a2f2cb9ee98d1891b1d95fc53ba;p=gcc.git * gcc.dg/unused-2.c: New test. From-SVN: r31627 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6f244fbba9e..0a3fe87a6d1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2000-01-26 Alexandre Oliva + * gcc.dg/unused-2.c: New test. + * gcc.dg/conv-1.c: New test. 2000-01-24 Mark Mitchell diff --git a/gcc/testsuite/gcc.dg/unused-2.c b/gcc/testsuite/gcc.dg/unused-2.c new file mode 100644 index 00000000000..cc45dc9baec --- /dev/null +++ b/gcc/testsuite/gcc.dg/unused-2.c @@ -0,0 +1,18 @@ +/* Copyright (C) 2000 Free Software Foundation. + + by Alexandre Oliva */ + +/* { dg-do compile } */ +/* { dg-options "-O2 -finline-functions -Wall" } */ + +static void +foo () +{ + skip_it: ; /* { dg-warning "unused label" "unused label warning" } */ +} + +void +bar () +{ + foo (); +}