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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [redecl-6.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* Test for multiple declarations and composite types.  As in bug
/* Test for multiple declarations and composite types.  As in bug
   13801.  Illustrates how bug causes correct code to be wrongly
   13801.  Illustrates how bug causes correct code to be wrongly
   diagnosed.  */
   diagnosed.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "" } */
/* { dg-options "" } */
 
 
typedef int IA[];
typedef int IA[];
typedef int A5[5];
typedef int A5[5];
typedef int A10[10];
typedef int A10[10];
 
 
A10 array10;
A10 array10;
 
 
A5 *ap;
A5 *ap;
void
void
f (void)
f (void)
{
{
  int ap;
  int ap;
  {
  {
    extern IA *ap;
    extern IA *ap;
    /* This assignment is valid.  */
    /* This assignment is valid.  */
    ap = &array10;
    ap = &array10;
  }
  }
}
}
 
 

powered by: WebSVN 2.1.0

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