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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr21332.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
 
4
// this testcase fails also on amd64:
5
 
6
extern void abort (void);
7
 
8
int f ()
9
{
10
  return -1;
11
}
12
 
13
int main ()
14
{
15
  int b, c, i;
16
 
17
  b = 0;
18
  c = f ();
19
  if (c <= 0)
20
    {
21
      c = -c;
22
      for (i = 0; i < c; i++)
23
          b = 1;
24
      if (!b)
25
        abort ();
26
    }
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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