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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.c/] [nestedfn-6.c] - Blame information for rev 320

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

Line No. Rev Author Line
1 273 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.