URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* PR c/12446 */
|
/* PR c/12446 */
|
/* Origin: Keith Thompson <kst@cts.com> */
|
/* Origin: Keith Thompson <kst@cts.com> */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
|
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
|
|
|
|
|
struct s { char c[1]; };
|
struct s { char c[1]; };
|
|
|
extern struct s foo(void);
|
extern struct s foo(void);
|
|
|
void bar(void)
|
void bar(void)
|
{
|
{
|
char *ptr = foo().c; /* { dg-bogus "non-lvalue" "array not decaying to lvalue" } */
|
char *ptr = foo().c; /* { dg-bogus "non-lvalue" "array not decaying to lvalue" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.