URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR c/5623 */
|
/* PR c/5623 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
|
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
|
|
|
struct blah {
|
struct blah {
|
int number;
|
int number;
|
char array[];
|
char array[];
|
};
|
};
|
|
|
void foo(void)
|
void foo(void)
|
{
|
{
|
struct blah b;
|
struct blah b;
|
b.array = "hi"; /* { dg-error "invalid use of flexible array member" } */
|
b.array = "hi"; /* { dg-error "invalid use of flexible array member" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.