blob: 141641d29e9996e7c38c78a6a4a498e1cac05d39 [file] [log] [blame]
! PR tree-optimization/46985
! { dg-do compile }
! { dg-options "-O -ftree-pre -ftree-vrp -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre" }
type :: t
integer :: i
end type t
type(t), target :: tar(2) = (/t(2), t(4)/)
integer, pointer :: ptr(:)
ptr => tar%i
call foo (ptr)
contains
subroutine foo (arg)
integer :: arg(:)
arg = arg - 1
end subroutine
end