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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [pr36513.c] - Blame information for rev 706

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 686 jeremybenn
/* 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);
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
 

powered by: WebSVN 2.1.0

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