OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pr46985.f90] - Rev 774

Go to most recent revision | 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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.