summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/altreturn_4.f90
blob: 409ea51be7e4ea60c1705d6ae66af6f91dbc4689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do compile }
! Tests the fix for PR28172, in which an ICE would result from
! the contained call with an alternate retrun.

! Contributed by Tobias Schl�ter <tobi@gcc.gnu.org>

program blubb
  call otherini(*998)
  stop
998 stop
contains
 subroutine init
   call otherini(*999)
   return
999 stop
 end subroutine init
end program blubb