summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/interface_48.f90
blob: f7513324172d1ce4c3cea05bae88c57378125947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
! { dg-do compile }
! PR 96073 - this used to cause an ICE.
! Test case by Jürgen Reuter.

module m
  implicit none
  private

  interface
     subroutine GetXminM (set, xmin)
       integer, intent(in) :: set
       real, intent(out) :: xmin
     end subroutine GetXminM
  end interface
  interface 
     subroutine foo(a)  ! { dg-warning "Type mismatch" }
       integer, intent(in) :: a 
     end subroutine foo
  end interface

contains

  subroutine s ()
    real :: xmin
    integer :: set
    external :: GetXminM, foo
    call GetXminM (set, xmin)
    call foo(1.0) ! { dg-warning "Type mismatch" }
  end subroutine s

end module m