aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/altreturn_4.f90
blob: 7375544d2032139dcf3f716999317983eb5dc4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do compile }
! { dg-options "-std=gnu" }
!
! 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