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.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr34029-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
static const char s[] = "ab.cd.efghijk";
2
 
3
int
4
foo (const char *x)
5
{
6
  const char *a;
7
  int b = 0;
8
 
9
  a = __builtin_strchr (s, '.');
10
  if (a == 0)
11
    b = 1;
12
  else if ((a = __builtin_strchr (a + 1, '.')) == 0)
13
    b = 1;
14
  else if (__builtin_strncmp (s, x, a - s))
15
    b = 1;
16
  else if (__builtin_strncmp (a + 1, x + (a - s + 1), 4) < 0)
17
    b = 1;
18
 
19
  if (b)
20
    return 4;
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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