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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [noncompile/] [20050120-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR c/18946 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wshadow" } */
4
 
5
void bar (void)
6
{
7
  {
8
    if (foo)            /* { dg-error "undeclared|for each" } */
9
      foo ();           /* { dg-warning "shadows previous" } */
10
  }
11
}
12
 
13
void baz (void)
14
{
15
  if (foo)              /* { dg-error "undeclared" } */
16
    {
17
      int foo;          /* { dg-warning "shadows previous" } */
18
    }
19
}

powered by: WebSVN 2.1.0

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