Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / pr45636.f90
blob24447e8375cf7025aeb238bd211960bf73e0d85b
1 ! PR fortran/45636
2 ! { dg-do compile }
3 ! { dg-options "-O2 -fdump-tree-forwprop2" }
4 ! PR 45636 - make sure no memset is needed for a short right-hand side.
5 program main
6 character(len=2), parameter :: x='a '
7 character(len=1), parameter :: y='b'
8 character(len=4) :: a, b
9 a = x
10 b = y
11 call sub(a, b)
12 end program main
13 ! { dg-final { scan-tree-dump-times "memset" 0 "forwprop2" } }
14 ! { dg-final { cleanup-tree-dump "forwprop2" } }