Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/pr102314.f90

raw
1 ! PR fortran/102314
2 ! { dg-do compile }
3 ! { dg-options "-fopenmp -O2" }
4
5 ! Verify that deferred-length character allocatables used inside
6 ! OpenMP target regions do not ICE during SSA verification or inlining.
7
8 program p
9 character(:), allocatable :: y
10 call s(y)
11 !$omp target
12 y = 'abc'
13 !$omp end target
14 contains
15 subroutine s(x)
16 character(:), allocatable :: x
17 x = '123'
18 end
19 end