fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / widechar_7.f90
blob4368321170bc32cf84495a70e80ab67fed617d96
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 program test
6 character(kind=1,len=10) :: s1 = 4_"foobargee", t1 = 4_""
7 character(kind=4,len=10) :: s4 = "foobargee", t4 = ""
9 t1(5:5) = s1(6:6)
10 t4(5:5) = s4(6:6)
11 t4(5:5) = s1(6:6)
12 t1(5:5) = s4(6:6)
14 call sub (t1, t4)
16 end program test
18 ! { dg-final { scan-tree-dump-times "memmove" 0 "original" } }
19 ! { dg-final { cleanup-tree-dump "original" } }