Debian Codegraph @

gcc/testsuite/gfortran.dg/pr103504.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/103504 - ICE in get_sym_storage_size, at fortran/interface.c:2800
3 ! Contributed by G.Steinmetz
4
5 program p
6 implicit none
7 real :: y(1)
8 character :: b
9 call s(y)
10 call t(y)
11 call u(y)
12 call c(b)
13 contains
14 subroutine s(x)
15 real :: x(abs(1.):1) ! { dg-error "must be of INTEGER type" }
16 end
17 subroutine t(x)
18 real :: x(abs(1.):1) ! { dg-error "must be of INTEGER type" }
19 end
20 subroutine u(x)
21 real :: x(1:abs(1.)) ! { dg-error "must be of INTEGER type" }
22 end
23 subroutine c(z)
24 character(len=abs(1.)) :: z ! { dg-error "must be of INTEGER type" }
25 end subroutine c
26 end
27
28 ! { dg-prune-output "must be of INTEGER type" }