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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [redecl-8.c] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* Test for multiple declarations and composite types.  Diagnosis of
/* Test for multiple declarations and composite types.  Diagnosis of
   completion incompatible with implicit initializer.  */
   completion incompatible with implicit initializer.  */
 
 
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-g" } */
/* { dg-options "-g" } */
 
 
static int x[];
static int x[];
 
 
void
void
f (void)
f (void)
{
{
  extern int x[2]; /* { dg-error "completed incompatibly" } */
  extern int x[2]; /* { dg-error "completed incompatibly" } */
}
}
 
 
/* The following is OK.  */
/* The following is OK.  */
 
 
static int y[];
static int y[];
void
void
g (void)
g (void)
{
{
  extern int y[1];
  extern int y[1];
}
}
 
 

powered by: WebSVN 2.1.0

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