mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 16:50:57 +00:00
18 lines
289 B
C
18 lines
289 B
C
/* { dg-do run } */
|
|
|
|
#include <stdlib.h>
|
|
int main()
|
|
{
|
|
int x = 1;
|
|
#pragma omp parallel
|
|
#pragma omp single
|
|
{
|
|
#pragma omp task shared(x) depend(in: x)
|
|
if (x != 1)
|
|
abort ();
|
|
#pragma omp task shared(x) depend(out: x)
|
|
x = 2;
|
|
}
|
|
return 0;
|
|
}
|