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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr40172-1.c] - Rev 298

Compare with Previous | Blame | View Log

/* PR middle-end/40172 */
/* { dg-do compile } */
/* { dg-options "-Wall -W -Werror -Wlogical-op" } */
 
struct rtx_def;
typedef struct rtx_def *rtx; 
 
extern int foo;
extern int bar;
extern int xxx;
 
int
test (void)
{
  if (((rtx) 0 != (rtx) 0) && xxx ? foo : bar)
    return 1;
  else if ((foo & 0) && xxx)
    return 2;
  else if (foo & 0)
    return 3;
  else if (0 && xxx)
    return 4;
  else if (0)
    return 5;
  if (((int) 0 != (int) 0) && bar ? foo : xxx)
    return 6;
  else if (0 != 0 && foo ? xxx : bar)
    return 7;
  else
    return 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.