URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pr46985.f90] - Rev 694
Compare with Previous | Blame | View Log
! 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