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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [redecl-9.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Test for multiple declarations and composite types, as in bug
2
   13801.  Test types saved from outer scopes are up to date.  */
3
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
4
/* { dg-do compile } */
5
/* { dg-options "" } */
6
 
7
int x[];
8
 
9
void
10
f (void)
11
{
12
  extern int x[];
13
}
14
 
15
int x[10];
16
 
17
void
18
g (void)
19
{
20
  int x;
21
  {
22
    extern int x[10];
23
  }
24
}
25
 
26
void
27
h (void)
28
{
29
  sizeof (x);
30
}

powered by: WebSVN 2.1.0

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