gcc/testsuite/gfortran.dg/gomp/pr101760.f90
raw| 1 | ! PR fortran/101760 |
| 2 | ! { dg-do compile } |
| 3 | ! { dg-options "-fopenmp -O1" } |
| 4 | |
| 5 | ! Verify that deferred-length character variables with the TARGET attribute |
| 6 | ! in OpenMP target regions do not ICE during inlining. |
| 7 | |
| 8 | program p |
| 9 | character(:), allocatable, target :: x |
| 10 | logical :: l |
| 11 | !$omp target map(from: l) |
| 12 | l = allocated (x) |
| 13 | !$omp end target |
| 14 | end |