mirror of git://gcc.gnu.org/git/gcc.git
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>
|
2000-05-06 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
* g++.old-deja/g++.brendan/code-gen2.C: Cast to size_t, not int.
|
* g++.old-deja/g++.brendan/code-gen2.C: Cast to size_t, not int.
|
||||||
|
|
|
@ -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