Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / unused-3.c
blob120562448aaf5345f27ebf0b1bb69c57188a031c
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 main ()
10 short
11 x /* { dg-warning "unused variable" "unused variable warning" } */
13 unused_type y;