blob: bb626006fe93c1a6c3e17429f61f4336aff8ed6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
! { dg-do compile }
!
! Test the fix for PR78331.
!
! Reported on https://groups.google.com/forum/#!topic/comp.lang.fortran/NFCF9brKksg
!
MODULE MainModule
END MODULE MainModule
SUBMODULE (MainModule) MySub1
IMPLICIT NONE
INTEGER, PARAMETER :: a = 17
END SUBMODULE MySub1
PROGRAM MyProg
USE MainModule
WRITE(*,*) a
END PROGRAM MyProg
! { dg-error "does not contain a MODULE PROCEDURE" "" { target "*-*-*" } 0 }
! { dg-prune-output "compilation terminated" }
|