OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [unused-3.c] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* 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" } */
6
 
7
typedef short unused_type __attribute__ ((unused));
8
main ()
9
{
10
  short
11
    x   /* { dg-warning "unused variable" "unused variable warning" } */
12
    ;
13
  unused_type y;
14
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.