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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [libgomp/] [testsuite/] [libgomp.c/] [loop-3.c] - Blame information for rev 856

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

Line No. Rev Author Line
1 38 julius
/* { dg-do run } */
2
 
3
extern void abort (void);
4
 
5
volatile int count;
6
static int test(void)
7
{
8
  return ++count > 0;
9
}
10
 
11
int main()
12
{
13
  int i;
14
  #pragma omp for
15
  for (i = 0; i < 10; ++i)
16
    {
17
      if (test())
18
        continue;
19
      abort ();
20
    }
21
  if (i != count)
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.