annotate gcc/testsuite/gfortran.dg/arrayio_0.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
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 ! Tests fix for PR20840 - would ICE with vector subscript in
kono
parents:
diff changeset
3 ! internal unit.
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 character(len=12), dimension(4) :: iu, buff
kono
parents:
diff changeset
8 character(len=48), dimension(2) :: iue
kono
parents:
diff changeset
9 equivalence (iu, iue)
kono
parents:
diff changeset
10 integer, dimension(4) :: v = (/2,1,4,3/)
kono
parents:
diff changeset
11 iu = (/"Vector ","subscripts","not ","allowed! "/)
kono
parents:
diff changeset
12 read (iu, '(a12/)') buff
kono
parents:
diff changeset
13 read (iue(1), '(4a12)') buff
kono
parents:
diff changeset
14 read (iu(4:1:-1), '(a12/)') buff
kono
parents:
diff changeset
15 read (iu(v), '(a12/)') buff ! { dg-error "with vector subscript" }
kono
parents:
diff changeset
16 read (iu((/2,4,3,1/)), '(a12/)') buff ! { dg-error "with vector subscript" }
kono
parents:
diff changeset
17 print *, buff
kono
parents:
diff changeset
18 end
kono
parents:
diff changeset
19