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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [unused-3.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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.