summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/pr39354.f90
blob: 3b9c327849a3b5bc643e30405873ed1ee0d1a801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
! PR fortran/39354
! { dg-do compile }
! { dg-options "-fopenmp" }
      SUBROUTINE ltest(l1, l2, l3, l4, r1, r2, r3, r4)
      LOGICAL l1, l2, l3, l4, r1, r2, r3, r4
!$OMP ATOMIC
      l1 = l1 .and. r1
!$OMP ATOMIC
      l2 = l2 .or. r2
!$OMP ATOMIC
      l3 = l3 .eqv. r3
!$OMP ATOMIC
      l4 = l4 .neqv. r4
      END
      SUBROUTINE itest(l1, l2, l3, l4, l5, l6, l7, l8, l9, &
&                      r1, r2, r3, r4, r5, r6, r7, r8, r9)
      INTEGER l1, l2, l3, l4, l5, l6, l7, l8, l9, &
&             r1, r2, r3, r4, r5, r6, r7, r8, r9
!$OMP ATOMIC
      l1 = l1 + r1
!$OMP ATOMIC
      l2 = l2 - r2
!$OMP ATOMIC
      l3 = l3 * r3
!$OMP ATOMIC
      l4 = l4 / r4
!$OMP ATOMIC
      l5 = max (l5, r1, r5)
!$OMP ATOMIC
      l6 = min (r1, r6, l6)
!$OMP ATOMIC
      l7 = iand (l7, r7)
!$OMP ATOMIC
      l8 = ior (r8, l8)
!$OMP ATOMIC
      l9 = ieor (l9, r9)
      END