Debian Codegraph @

gcc/testsuite/gfortran.dg/pr102180.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib" }
3 ! PR fortran/102180 - Improve checking of assumed size array spec
4
5 subroutine s(x,y)
6 real :: x(0:*) ! legal
7 real :: y[0:*] ! legal
8 end
9
10 subroutine t(x,y)
11 real :: x(:*) ! { dg-error "A lower bound must precede colon" }
12 real :: y[:*] ! { dg-error "A lower bound must precede colon" }
13 end
14
15 subroutine u(x,y,z)
16 real :: x(2,*)
17 real :: y(2,2:*)
18 real :: z(2,:*) ! { dg-error "A lower bound must precede colon" }
19 end