1 /* PR 36513: -Wlogical-op warns about strchr */
2 /* { dg-do compile } */
3 /* { dg-options "-Wlogical-op" } */
4 
5 extern void *__rawmemchr (const void *__s, int __c);
main1()6 int main1 ()
7 {
8   char *s, t;
9   (__extension__ (__builtin_constant_p (t)
10 		  && !__builtin_constant_p (s)
11 		  && (t) == '\0'
12 		  ? (char *) __rawmemchr (s, t)
13 		  : __builtin_strchr (s, t)));
14 
15   return 0;
16 }
17 
18