URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* Copyright (C) 2000 Free Software Foundation. */
|
/* Copyright (C) 2000 Free Software Foundation. */
|
/* Added extra line-breaks to check that diagnostics refer to correct token.
|
/* Added extra line-breaks to check that diagnostics refer to correct token.
|
--Per Bothner. */
|
--Per Bothner. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wunused" } */
|
/* { dg-options "-Wunused" } */
|
|
|
typedef short unused_type __attribute__ ((unused));
|
typedef short unused_type __attribute__ ((unused));
|
main ()
|
main ()
|
{
|
{
|
short
|
short
|
x /* { dg-warning "unused variable" "unused variable warning" } */
|
x /* { dg-warning "unused variable" "unused variable warning" } */
|
;
|
;
|
unused_type y;
|
unused_type y;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.