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] - Blame information for rev 708

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

Line No. Rev Author Line
1 686 jeremybenn
/* Origin: PR c++/44108 */
2
/* { dg-options "-Wunused" } */
3
/* { dg-do compile } */
4
 
5
int
6
foo ()
7
{
8
  unsigned int M = 2;
9
  const unsigned int M_CONST = 2;
10
  static unsigned int M_STATIC = 2;
11
  static const unsigned int M_STATIC_CONST = 2;
12
 
13
  char n1[M];
14
  char n2[M_CONST];
15
  char n3[M_STATIC];
16
  char n4[M_STATIC_CONST];
17
 
18
  return sizeof (n1) + sizeof (n2) + sizeof (n3) + sizeof (n4);
19
}

powered by: WebSVN 2.1.0

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