summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/unused-3.c
blob: cd64abd4b80cedfac7e92f75aa2ec38c48bbba9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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));
int
main ()
{
  short
    x   /* { dg-warning "unused variable" "unused variable warning" } */
    ;
  unused_type y;
}