summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dependency_13.f90
blob: 887da9dbba6dd00fd976658b479c7d86e93aaa04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-O2 -fdump-tree-original" }
   integer :: i(5)
   real(4) :: x(5)
   equivalence(x,i)

   i = (/ 1, 0, 3, 5, 0 /)
   where (i(1:4) .ne. 0)
     x(2:5) = -42.
   end where
   end
! { dg-final { scan-tree-dump-times "temp" 3 "original" } }
! { dg-final { cleanup-tree-dump "original" } }