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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [redecl-7.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Test for multiple declarations and composite types.  Diagnosis of
2
   completion incompatible with implicit initializer.  */
3
 
4
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
5
/* { dg-do compile } */
6
/* { dg-options "-g" } */
7
 
8
int x[];
9
 
10
void
11
f (void)
12
{
13
  extern int x[2]; /* { dg-error "completed incompatibly" } */
14
}
15
 
16
/* The following is OK.  */
17
 
18
int y[];
19
void
20
g (void)
21
{
22
  extern int y[1];
23
}

powered by: WebSVN 2.1.0

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