2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / string_assign_1.f90
blob8a520ff1dd9d590fc44cf795fdaebe376f29ce2e
1 ! { dg-do compile }
2 ! { dg-options "-ffrontend-optimize -fdump-tree-original" }
3 ! PR 52861 - optimize this to c = '' so that there is
4 ! no memcpy in the generated code.
5 program main
6 character (len=20) :: c
7 c = ' '
8 print *,c
9 end program main
10 ! { dg-final { scan-tree-dump-times "memcpy" 0 "original" } }
11 ! { dg-final { cleanup-tree-dump "original" } }