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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [redecl-6.c] - Blame information for rev 717

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

Line No. Rev Author Line
1 689 jeremybenn
/* Test for multiple declarations and composite types.  As in bug
2
   13801.  Illustrates how bug causes correct code to be wrongly
3
   diagnosed.  */
4
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
5
/* { dg-do compile } */
6
/* { dg-options "" } */
7
 
8
typedef int IA[];
9
typedef int A5[5];
10
typedef int A10[10];
11
 
12
A10 array10;
13
 
14
A5 *ap;
15
void
16
f (void)
17
{
18
  int ap;
19
  {
20
    extern IA *ap;
21
    /* This assignment is valid.  */
22
    ap = &array10;
23
  }
24
}

powered by: WebSVN 2.1.0

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