]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gfortran.dg/array_memcpy_4.f90
re PR middle-end/42834 (memcpy folding overeager)
[thirdparty/gcc.git] / gcc / testsuite / gfortran.dg / array_memcpy_4.f90
1 ! { dg-do compile }
2 ! { dg-options "-O2 -fdump-tree-original" }
3 type t
4 logical valid
5 integer :: x, y
6 end type
7 type (t) :: s(5)
8 type (t) :: d(5)
9
10 d = s
11 end
12 ! { dg-final { scan-tree-dump-times "MEM.*d\\\] = MEM" 1 "original" } }
13 ! { dg-final { cleanup-tree-dump "original" } }