coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / pr48794-2.f90
blobb3f9d3c9cf06dc9e465d4da1090f98b58c46ed8d
1 ! PR tree-optimization/48794
2 ! { dg-do compile }
3 ! { dg-options "-Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop" }
5 integer, allocatable :: a(:)
6 integer :: b(48)
7 logical :: l
8 if (allocated (a)) then
9 call abort
10 call bla(b)
11 end if
12 !$omp parallel private (a) reduction (.or.:l)
13 do i = 1, 7
14 end do
15 !$omp end parallel
16 end