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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [noncompile/] [scope.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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.