annotate gcc/testsuite/gfortran.dg/pr19926.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900 (2018-10-25)
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 module b
kono
parents:
diff changeset
3 type cat
kono
parents:
diff changeset
4 integer :: i = 0
kono
parents:
diff changeset
5 end type cat
kono
parents:
diff changeset
6 end module b
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 program a
kono
parents:
diff changeset
9 use b
kono
parents:
diff changeset
10 type(cat) z
kono
parents:
diff changeset
11 integer :: i = 0, j(4,3,2) = 0
kono
parents:
diff changeset
12 call string_comp(i)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
13 if (i /= 3) STOP 1
111
kono
parents:
diff changeset
14 call string_comp(z%i)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
15 if (z%i /= 3) STOP 2
111
kono
parents:
diff changeset
16 call string_comp(j(1,2,1))
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
17 if (j(1,2,1) /= 3) STOP 3
111
kono
parents:
diff changeset
18 end program a
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 subroutine string_comp(i)
kono
parents:
diff changeset
21 integer, parameter :: map(0:50) = 3
kono
parents:
diff changeset
22 integer :: i
kono
parents:
diff changeset
23 i = map(42)
kono
parents:
diff changeset
24 end subroutine string_comp