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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr48770.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-require-effective-target fpic } */
3
/* { dg-options "-O -fprofile-arcs -fPIC -fno-dce -fno-forward-propagate" } */
4
 
5
int test_goto2 (int f)
6
{
7
  int i;
8
  for (i = 0; ({_Bool a = i < 10;a;}); i++)
9
  {
10
    if (i == f)
11
      goto lab2;
12
  }
13
  return 4;
14
lab2:
15
  return 8;
16
}
17
 
18
int main ()
19
{
20
  test_goto2 (30);
21
  return 0;
22
}
23
 
24
/* { dg-final { cleanup-coverage-files } } */

powered by: WebSVN 2.1.0

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