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-14.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Some incompatible external linkage declarations were not diagnosed.
2
   Bug 21342.  Test type in inner scope is correct.  */
3
/* Origin: Joseph Myers <joseph@codesourcery.com> */
4
/* { dg-do compile } */
5
/* { dg-options "" } */
6
 
7
typedef int IA[];
8
typedef int IA5[5];
9
typedef IA *IAP;
10
typedef IA5 *IA5P;
11
extern IAP a[];
12
void
13
f (void)
14
{
15
  {
16
    extern IA5P a[];
17
    sizeof (*a[0]);
18
  }
19
  extern IAP a[];
20
  extern IAP a[5];
21
  sizeof (*a[0]); /* { dg-error "error: invalid application of 'sizeof' to incomplete type 'IA'" } */
22
}

powered by: WebSVN 2.1.0

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