[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / unused-3.c
blobcd64abd4b80cedfac7e92f75aa2ec38c48bbba9c
1 /* Copyright (C) 2000 Free Software Foundation. */
2 /* Added extra line-breaks to check that diagnostics refer to correct token.
3 --Per Bothner. */
4 /* { dg-do compile } */
5 /* { dg-options "-Wunused" } */
7 typedef short unused_type __attribute__ ((unused));
8 int
9 main ()
11 short
12 x /* { dg-warning "unused variable" "unused variable warning" } */
14 unused_type y;