Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/atomic-28.f90

raw
1 ! { dg-do compile }
2 !
3 ! PR fortran/104329
4 !
5 ! Contributed by G. Steinmetz
6 !
7 subroutine z1
8 character(:), allocatable :: x(:)
9 x = ['123']
10 !$omp atomic update
11 x = (x) ! { dg-error "OMP ATOMIC statement must set a scalar variable of intrinsic type" }
12 end
13
14 subroutine z2
15 character(:), allocatable :: x(:)
16 x = ['123']
17 !$omp atomic update
18 x = 'a' // x // 'e' ! { dg-error "OMP ATOMIC statement must set a scalar variable of intrinsic type" }
19 end
20
21
22 subroutine z3
23 character(:), allocatable :: x(:)
24 x = ['123']
25 !$omp atomic capture
26 x = 'a' // x // 'e' ! { dg-error "OMP ATOMIC statement must set a scalar variable of intrinsic type" }
27 x = x
28 end