URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* 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:1990 -pedantic-errors" } */
|
/* { dg-options "-std=iso9899:1990 -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 "warning" "warning in place of error" } */
|
char *ptr = foo().c; /* { dg-bogus "warning" "warning in place of error" } */
|
}
|
}
|
/* { dg-error "non-lvalue" "array not decaying to lvalue" { target *-*-* } 14 } */
|
/* { dg-error "non-lvalue" "array not decaying to lvalue" { target *-*-* } 14 } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.