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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.c/] [nestedfn-6.c] - Blame information for rev 810

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

Line No. Rev Author Line
1 735 jeremybenn
extern void abort (void);
2
 
3
int j;
4
 
5
int
6
main (void)
7
{
8
  int i;
9
  void nested (void) { i = 0; }
10
#pragma omp parallel for lastprivate (i)
11
  for (i = 0; i < 50; i += 3)
12
    ;
13
  if (i != 51)
14
    abort ();
15
#pragma omp parallel for lastprivate (j)
16
  for (j = -50; j < 70; j += 7)
17
    ;
18
  if (j != 76)
19
    abort ();
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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