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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Wunused" } */
3
 
4
int
5
f1 (void)
6
{
7
  int a;
8
  int foo (void)
9
  {
10
    return a;
11
  }
12
  a = 1;
13
  return foo ();
14
}
15
 
16
void
17
f2 (void)
18
{
19
  int a;        /* { dg-warning "set but not used" } */
20
  void foo (void)
21
  {
22
    a = 2;
23
  }
24
  a = 1;
25
  foo ();
26
}

powered by: WebSVN 2.1.0

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