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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.c/] [pr49898-2.c] - Rev 735

Compare with Previous | Blame | View Log

/* PR middle-end/49898 */
/* { dg-do run } */
 
extern void abort (void);
 
int
main ()
{
  int i, j, sum = 0;
#pragma omp parallel for reduction(+:sum)
  for (i = 0; i < 10; i++)
    #pragma omp parallel for reduction(+:sum)
    for (j = 0; j < 10; j++)
      sum += j;
  if (sum != 450)
    abort ();
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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