PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / module_widestring_1.f90
blob332b24d0c06b32a403d79763d32a8dff8f0eff1a
1 ! { dg-do run }
2 ! { dg-options "-fbackslash" }
4 ! Testcase from PR36162
5 module m
6 character(*), parameter :: a ='H\0z'
7 end module m
9 use m
10 character(len=20) :: s
11 if (a /= 'H\0z') STOP 1
12 if (ichar(a(2:2)) /= 0) STOP 2
13 write (s,"(A)") a
14 end