blob: ca93f41430465dc713fdff0f9c588bd08c81a4b5 [file] [log] [blame]
/* PR 36513: -Wlogical-op warns about strchr */
/* { dg-do compile } */
/* { dg-options "-Wlogical-op" } */
/* { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } } */
#ifdef __cplusplus
#include <cstring>
#else
#include <string.h>
#endif
int main2 ()
{
char *s, t;
strchr (s, t);
return 0;
}