PR testsuite/85483: Move aarch64/sve/vcond_1.c test to g++.dg/other/
[official-gcc.git] / libgomp / testsuite / libgomp.c / pr80394.c
blob6c5a740185151a7fcbc284003acbc83a78cc0fe9
1 /* PR libgomp/80394 */
3 int
4 main ()
6 int x = 0;
7 #pragma omp parallel shared(x)
8 #pragma omp single
10 #pragma omp task depend(inout: x)
12 for (int i = 0; i < 100000; i++)
13 asm volatile ("" : : : "memory");
14 x += 5;
16 #pragma omp task if (0) depend(inout: x)
18 if (x != 5)
19 __builtin_abort ();
21 return 0;