aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr36513-2.c
blob: ca93f41430465dc713fdff0f9c588bd08c81a4b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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;
}