URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Warning for assignment used as truth-value should apply for
|
/* Warning for assignment used as truth-value should apply for
|
bit-fields. */
|
bit-fields. */
|
/* Origin: bug 12625 from nomura at netapp.com */
|
/* Origin: bug 12625 from nomura at netapp.com */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wparentheses" } */
|
/* { dg-options "-Wparentheses" } */
|
|
|
static struct { int i:8; } s;
|
static struct { int i:8; } s;
|
|
|
void
|
void
|
foo ()
|
foo ()
|
{
|
{
|
if (s.i = 0) ; /* { dg-warning "parentheses" "warning for bit-field" } */
|
if (s.i = 0) ; /* { dg-warning "parentheses" "warning for bit-field" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.