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/] [Wall.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* PR 30437: Test -Wall
/* PR 30437: Test -Wall
   Don't change this without changing Wno-all.c as well.  */
   Don't change this without changing Wno-all.c as well.  */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-Wall" } */
/* { dg-options "-Wall" } */
 
 
void foo()
void foo()
{
{
  int a;
  int a;
  5 * (a == 1) | (a == 2);  /* { dg-warning "no effect" "no effect" } */
  5 * (a == 1) | (a == 2);  /* { dg-warning "no effect" "no effect" } */
}
}
 
 

powered by: WebSVN 2.1.0

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