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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [Wunreachable-8.c] - Blame information for rev 455

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wunreachable-code" } */
3
float Factorial(float X)
4
{
5
  float val = 1.0;
6
  int k,j;
7
  for (k=1; k < 5; k++)
8
    {
9
      val += 1.0;
10
    }
11
  return (val); /* { dg-bogus "will never be executed" } */
12
}
13
 
14
int main (void)
15
{
16
  float result;
17
  result=Factorial(2.1);
18
  return (0);
19
}
20
 

powered by: WebSVN 2.1.0

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