libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr45636.f90
blobee7cf3863cb5f82d0bebe6bdf1b2d538f1985015
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" { xfail { mips*-*-* && { ! nomips16 } } } } }
14 ! { dg-final { cleanup-tree-dump "forwprop2" } }