mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-28 14:31:50 +00:00
27 lines
374 B
C
27 lines
374 B
C
/* PR middle-end/49898 */
|
|
/* { dg-do run } */
|
|
|
|
extern void abort (void);
|
|
|
|
int
|
|
main ()
|
|
{
|
|
int i, j, sum = 0;
|
|
#pragma omp parallel
|
|
{
|
|
#pragma omp for reduction(+:sum)
|
|
for (i = 0; i < 10; i++)
|
|
{
|
|
#pragma omp parallel
|
|
{
|
|
#pragma omp for reduction(+:sum)
|
|
for (j = 0; j < 10; j++)
|
|
sum += j;
|
|
}
|
|
}
|
|
}
|
|
if (sum != 450)
|
|
abort ();
|
|
return 0;
|
|
}
|