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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20021120-2.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
int g1, g2;
2
 
3
void foo (int x)
4
{
5
  int y;
6
 
7
  if (x)
8
    y = 793;
9
  else
10
    y = 793;
11
  g1 = 7930 / y;
12
  g2 = 7930 / x;
13
}
14
 
15
int main ()
16
{
17
  foo (793);
18
  if (g1 != 10 || g2 != 10)
19
    abort ();
20
  exit (0);
21
}

powered by: WebSVN 2.1.0

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