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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [20030323-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
 
3
/* PR c/8224 */
4
/* Contributed by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> */
5
 
6
extern void abort (void);
7
 
8
unsigned f (int x)
9
{
10
  return (unsigned) (x / 2) / 2;
11
}
12
 
13
unsigned f1 (int x)
14
{
15
  unsigned xx = x / 2;
16
  return xx / 2;
17
}
18
 
19
int main ()
20
{
21
  if (f1 (-5) != f (-5))
22
    abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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