RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / submodule_21.f08
blobbb626006fe93c1a6c3e17429f61f4336aff8ed6f
1 ! { dg-do compile }
3 ! Test the fix for PR78331.
5 ! Reported on https://groups.google.com/forum/#!topic/comp.lang.fortran/NFCF9brKksg
7 MODULE MainModule
8 END MODULE MainModule
10 SUBMODULE (MainModule) MySub1
11   IMPLICIT NONE
12   INTEGER, PARAMETER :: a = 17
13 END SUBMODULE MySub1
15 PROGRAM MyProg
16   USE MainModule
17   WRITE(*,*) a
18 END PROGRAM MyProg
19 ! { dg-error "does not contain a MODULE PROCEDURE" "" { target "*-*-*" } 0 }
20 ! { dg-prune-output "compilation terminated" }