OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.c/] [loop-3.c] - Blame information for rev 533

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

Line No. Rev Author Line
1 273 jeremybenn
/* { 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 i;
12
 
13
int main()
14
{
15
  #pragma omp for lastprivate (i)
16
  for (i = 0; i < 10; ++i)
17
    {
18
      if (test())
19
        continue;
20
      abort ();
21
    }
22
  if (i != count)
23
    abort ();
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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