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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wunused-var-1.c] - Rev 754

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

/* { dg-do compile } */
/* { dg-options "-Wunused" } */
 
int
f1 (void)
{
  int a;
  int foo (void)
  {
    return a;
  }
  a = 1;
  return foo ();
}
 
void
f2 (void)
{
  int a;	/* { dg-warning "set but not used" } */
  void foo (void)
  {
    a = 2;
  }
  a = 1;
  foo ();
}
 

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

powered by: WebSVN 2.1.0

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