C++: simplify output from suggest_alternatives_for
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / pr81841.f90
blobed75837c37b95f78d1b9354467f17c437580e6e4
1 ! PR fortran/81841
2 ! { dg-do run }
4 block data
5 integer :: a
6 real :: b(2)
7 common /c/ a, b
8 !$omp threadprivate (/c/)
9 data a / 32 /
10 data b /2*1./
11 end
13 program pr81841
14 use omp_lib
15 integer :: e
16 real :: f(2)
17 common /c/ e, f
18 !$omp threadprivate (/c/)
19 !$omp parallel num_threads(8)
20 if ((e /= 32) .or. any(f /= 1.)) STOP 1
21 e = omp_get_thread_num ()
22 f = e + 19.
23 !$omp barrier
24 if ((e /= omp_get_thread_num ()) .or. any(f /= e + 19.)) STOP 2
25 !$omp end parallel
26 end