annotate gcc/testsuite/gfortran.dg/assumed_dummy_2.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +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
kono
parents:
diff changeset
3 double precision :: arr(5, 8)
kono
parents:
diff changeset
4 call bar (arr)
kono
parents:
diff changeset
5 contains
kono
parents:
diff changeset
6 subroutine foo (arr)
kono
parents:
diff changeset
7 double precision :: arr(:,:)
kono
parents:
diff changeset
8 arr(3, 4) = 24
kono
parents:
diff changeset
9 end subroutine foo
kono
parents:
diff changeset
10 subroutine bar (arr)
kono
parents:
diff changeset
11 double precision :: arr(5,*)
kono
parents:
diff changeset
12 call foo (arr) ! { dg-error "cannot be an assumed-size array" }
kono
parents:
diff changeset
13 call foo (arr (:, :8))
kono
parents:
diff changeset
14 end subroutine
kono
parents:
diff changeset
15 end