coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / pr47331.f90
blob71713e02233fa42909aafe90569e3e6319d04eed
1 ! PR fortran/47331
2 ! { dg-do compile }
3 ! { dg-options "-fopenmp -fwhole-file" }
5 subroutine foo
6 !$omp parallel
7 call bar ()
8 !$omp end parallel
9 end subroutine foo
11 subroutine bar
12 integer :: k
13 do k=1,5
14 call baz (k)
15 end do
16 end subroutine bar
18 subroutine baz (k)
19 integer :: k
20 end subroutine
22 program pr47331
23 call foo
24 end program pr47331