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

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! { dg-options "-fcray-pointer" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! Test for PR37039, from an issue on comp.lang.fortran
kono
parents:
diff changeset
5 ! http://groups.google.com/group/comp.lang.fortran/msg/8cfa06f222721386
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 subroutine test(nnode)
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9 integer n,nnode
kono
parents:
diff changeset
10 pointer(ip_tab, tab)
kono
parents:
diff changeset
11 integer , dimension(1:nnode) :: tab
kono
parents:
diff changeset
12 do n=1,nnode
kono
parents:
diff changeset
13 tab(n) = 0
kono
parents:
diff changeset
14 enddo
kono
parents:
diff changeset
15 end subroutine test