diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2000-01-26 07:15:01 +0000 |
---|---|---|
committer | Alexandre Oliva <oliva@gcc.gnu.org> | 2000-01-26 07:15:01 +0000 |
commit | 3f50679d00307a2f2cb9ee98d1891b1d95fc53ba (patch) | |
tree | a3c6b9ad379c4598fb3ecd7fb698162a6ad46c50 /gcc/testsuite | |
parent | 3ebed0b2f8af47e3ac9bd6fc0e4bf00019dba796 (diff) | |
download | gcc-3f50679d00307a2f2cb9ee98d1891b1d95fc53ba.zip gcc-3f50679d00307a2f2cb9ee98d1891b1d95fc53ba.tar.gz gcc-3f50679d00307a2f2cb9ee98d1891b1d95fc53ba.tar.bz2 |
* gcc.dg/unused-2.c: New test.
From-SVN: r31627
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/unused-2.c | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6f244fbb..0a3fe87 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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> diff --git a/gcc/testsuite/gcc.dg/unused-2.c b/gcc/testsuite/gcc.dg/unused-2.c new file mode 100644 index 0000000..cc45dc9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/unused-2.c @@ -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 (); +} |