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 |
/* Test for deprecation of conditional expressions as lvalues. */
|
/* Test for deprecation of conditional expressions as lvalues. */
|
/* 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, y, z;
|
int x, y, z;
|
|
|
void
|
void
|
foo (void)
|
foo (void)
|
{
|
{
|
(x ? y : z) = 1; /* { dg-bogus "warning" "warning in place of error" } */
|
(x ? y : z) = 1; /* { dg-bogus "warning" "warning in place of error" } */
|
}
|
}
|
/* { dg-error "lvalue" "conditional expression as lvalue" { target *-*-* } 11 } */
|
/* { dg-error "lvalue" "conditional expression as lvalue" { target *-*-* } 11 } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.