view gcc/testsuite/gfortran.dg/PR37039.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-fcray-pointer" }
!
! Test for PR37039, from an issue on comp.lang.fortran
! http://groups.google.com/group/comp.lang.fortran/msg/8cfa06f222721386

      subroutine test(nnode) 
      implicit none 
      integer n,nnode 
      pointer(ip_tab, tab) 
      integer , dimension(1:nnode) :: tab 
      do n=1,nnode 
         tab(n) = 0 
      enddo 
      end subroutine test