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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [noncompile/] [scope.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
extern void abort (void);
2
extern void exit (int);
3
static int v = 3;
4
 
5
f ()
6
{
7
  int v = 4;
8
  {
9
    extern int v; /* { dg-error "static" } */
10
    if (v != 3)
11
      abort ();
12
  }
13
}
14
 
15
main ()
16
{
17
  f ();
18
  exit (0);
19
}

powered by: WebSVN 2.1.0

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