Debian Codegraph @

gcc/testsuite/gfortran.dg/pr103608.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-w" }
3 ! PR fortran/103608 - ICE in do_intent
4 ! Contributed by G.Steinmetz
5
6 program p
7 implicit none
8 integer :: i
9 integer :: x ! { dg-error "Alternate return specifier" }
10 x(*) = 0
11 do i = 1, 2
12 print *, x(i) ! { dg-error "Missing alternate return specifier" }
13 end do
14 end