OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [c-c++-common/] [pr36513-2.c] - Diff between revs 295 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 295 Rev 384
/* PR 36513: -Wlogical-op warns about strchr */
/* PR 36513: -Wlogical-op warns about strchr */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-Wlogical-op" } */
/* { dg-options "-Wlogical-op" } */
#ifdef __cplusplus
#ifdef __cplusplus
#include <cstring>
#include <cstring>
#else 
#else 
#include <string.h>
#include <string.h>
#endif
#endif
int main2 ()
int main2 ()
{
{
  char *s, t;
  char *s, t;
  strchr (s, t);
  strchr (s, t);
}
}
 
 

powered by: WebSVN 2.1.0

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