New test.

From-SVN: r33767
This commit is contained in:
Catherine Moore 2000-05-08 14:55:42 +00:00 committed by Catherine Moore
parent e89c8502db
commit c0916fa0b5
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-05-08 Catherine Moore <clm@cygnus.com>
* gcc.dg/unused-3.c: New.
2000-05-06 Richard Henderson <rth@cygnus.com>
* g++.old-deja/g++.brendan/code-gen2.C: Cast to size_t, not int.

View File

@ -0,0 +1,10 @@
/* Copyright (C) 2000 Free Software Foundation. */
/* { dg-do compile } */
/* { dg-options "-Wunused" } */
typedef short unused_type __attribute__ ((unused));
main ()
{
short x; /* { dg-warning "unused variable" "unused variable warning" } */
unused_type y;
}