Retro68/gcc/gcc/testsuite/gfortran.dg/pr86110.f90
2018-12-28 16:30:48 +01:00

8 lines
162 B
Fortran

! { dg-do compile }
! PR fortran/86110
program p
character(:), allocatable :: x, y
x = 'abc'
y = [x(:)] ! { dg-error "Incompatible ranks 0 and 1" }
end