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

15 lines
252 B
Fortran

! { dg-do run }
! { dg-options "-fbackslash" }
!
! Testcase from PR36162
module m
character(*), parameter :: a ='H\0z'
end module m
use m
character(len=20) :: s
if (a /= 'H\0z') STOP 1
if (ichar(a(2:2)) /= 0) STOP 2
write (s,"(A)") a
end