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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [Wunused-var-8.c] - Rev 749

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

/* Origin: PR c++/44108 */
/* { dg-options "-Wunused" } */
/* { dg-do compile } */
 
int
foo ()
{
  unsigned int M = 2;
  const unsigned int M_CONST = 2;
  static unsigned int M_STATIC = 2;
  static const unsigned int M_STATIC_CONST = 2;
 
  char n1[M];
  char n2[M_CONST];
  char n3[M_STATIC];
  char n4[M_STATIC_CONST];
 
  return sizeof (n1) + sizeof (n2) + sizeof (n3) + sizeof (n4);
}
 

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.