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. Test types saved from outer scopes are up to date. */
|
13801. Test types saved from outer scopes are up to date. */
|
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "" } */
|
/* { dg-options "" } */
|
|
|
int x[];
|
int x[];
|
|
|
void
|
void
|
f (void)
|
f (void)
|
{
|
{
|
extern int x[];
|
extern int x[];
|
}
|
}
|
|
|
int x[10];
|
int x[10];
|
|
|
void
|
void
|
g (void)
|
g (void)
|
{
|
{
|
int x;
|
int x;
|
{
|
{
|
extern int x[10];
|
extern int x[10];
|
}
|
}
|
}
|
}
|
|
|
void
|
void
|
h (void)
|
h (void)
|
{
|
{
|
sizeof (x);
|
sizeof (x);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.