mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 14:10:11 +08:00
New test.
From-SVN: r33767
This commit is contained in:
parent
e89c8502db
commit
c0916fa0b5
@ -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.
|
||||
|
10
gcc/testsuite/gcc.dg/unused-3.c
Normal file
10
gcc/testsuite/gcc.dg/unused-3.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user