summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/unused-3.c
blob: 120562448aaf5345f27ebf0b1bb69c57188a031c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (C) 2000  Free Software Foundation.  */
/* Added extra line-breaks to check that diagnostics refer to correct token.
   --Per Bothner. */
/* { 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;
}