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 array of incomplete structure type - Zack Weinberg in
|
/* Test for array of incomplete structure type - Zack Weinberg in
|
<http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00108.html>. */
|
<http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00108.html>. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "" } */
|
/* { dg-options "" } */
|
|
|
struct foo;
|
struct foo;
|
|
|
void
|
void
|
f (void)
|
f (void)
|
{
|
{
|
struct foo { int a; int b; };
|
struct foo { int a; int b; };
|
}
|
}
|
|
|
struct foo array[5]; /* { dg-error "array type has incomplete element type" } */
|
struct foo array[5]; /* { dg-error "array type has incomplete element type" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.