OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr12625-1.c] - Diff between revs 149 and 154

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" } */
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.