Commit c0916fa0 by Catherine Moore Committed by Catherine Moore

New test.

From-SVN: r33767
parent e89c8502
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.
......
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment