PR middle-end/77674
[official-gcc.git] / gcc / testsuite / gfortran.dg / altreturn_7.f90
blob522d767794378f5af187b1e3cd7bdadb5feffe38
1 ! { dg-do compile }
2 ! { dg-options "-std=gnu" }
4 ! PR 40848: [4.5 Regression] ICE with alternate returns
6 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
8 MODULE TT
10 INTERFACE M
11 MODULE PROCEDURE M1,M2
12 END INTERFACE
14 CONTAINS
16 SUBROUTINE M1(I,*)
17 INTEGER :: I
18 RETURN 1
19 END SUBROUTINE
21 SUBROUTINE M2(I,J)
22 INTEGER :: I,J
23 END SUBROUTINE
25 END MODULE
28 USE TT
29 CALL M(1,*2)
30 CALL ABORT()
31 2 CONTINUE
32 END