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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr47743.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
int
4
foo (void *x, int y)
5
{
6
  long long a = 1, *b;
7
  double *c;
8
  if (y)
9
    {
10
      b = (long long *) x;
11
      while (b)
12
        a *= *b++;
13
    }
14
  else
15
    {
16
      c = (double *) x;
17
      while (c)
18
        a *= *c++;
19
    }
20
  return a;
21
}
22
 

powered by: WebSVN 2.1.0

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