URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
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;
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.