coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / pr48117.f90
blobbc8ad9bc35eb2b32402ae7fbc8d41063ed77b9bb
1 ! PR fortran/48117
2 ! { dg-do compile }
3 ! { dg-options "-O2 -fopenmp" }
5 subroutine foo(x)
6 character(len=*), optional :: x
7 character(len=80) :: v
8 !$omp master
9 if (present(x)) v = adjustl(x)
10 !$omp end master
11 end subroutine foo