1 2 3 4 5 6 7 8 9 10 11 12 13
! { dg-do compile } ! { dg-options "-O2 -fdump-tree-original" } type t logical valid integer :: x, y end type type (t) :: s(5) type (t) :: d(5) d = s end ! { dg-final { scan-tree-dump-times "MEM.*d\\\] = MEM" 1 "original" } } ! { dg-final { cleanup-tree-dump "original" } }