aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr61318.f90
blob: 7752ecda08e4d53b6b3823bfe3706410d43d5327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
! { dg-do compile }
!
module gbl_message
  type :: mytype
    integer(kind=4) :: e
  end type mytype
  type(mytype), parameter :: seve = mytype(1)
end module gbl_message

module gbl_interfaces
  interface
    subroutine gagout(message)
      character(len=*), intent(in) :: message
    end subroutine gagout
  end interface
end module gbl_interfaces

program test
  use gbl_message
  use gbl_interfaces
  call gagout(seve%e,'Some string') ! { dg-error "Type mismatch in argument|More actual than formal" }
end program test