view gcc/testsuite/gfortran.dg/pr64528.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

! PR fortran/64528
! { dg-do compile }
! { dg-options "-O -fno-tree-dce -fno-tree-ccp" }

program pr64528
  interface
     subroutine foo(x)
       integer, value :: x
     end subroutine foo
  end interface
  integer :: x
  x = 10
  call foo(x)
  if(x .ne. 10) then
  endif
end program pr64528
subroutine foo(x)
  integer, value :: x
  x = 11
end subroutine foo