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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [redecl-2.c] - Rev 689

Compare with Previous | Blame | View Log

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

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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