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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20010423-1.c] - Rev 816

Compare with Previous | Blame | View Log

/* Origin: PR c/2618 from Cesar Eduardo Barros <cesarb@nitnet.com.br>,
   adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
 
   Boolean conversions were causing infinite recursion between convert
   and fold in certain cases.  */
 
#include <stdbool.h>
 
bool x;
unsigned char y;
 
void
fn (void)
{
  x = y & 0x1 ? 1 : 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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