summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr77406.f90
blob: a279f75c6c7a044360e408da3e1cbb92ff568651 (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
32
33
34
! { dg-do compile }
! { dg-options "-w" }
module m
   interface s
      subroutine s1(*)  ! { dg-error "Ambiguous interfaces" }
      end
      subroutine s2(*)  ! { dg-error "Ambiguous interfaces" }
      end
   end interface 
   interface t
      subroutine t1(*)
      end
      subroutine t2(*,*)
      end
   end interface
   interface u
      subroutine u1(*,x)
      end
      subroutine u2(*,i)
      end
   end interface
   interface v
      subroutine v1(*,*)  ! { dg-error "Ambiguous interfaces" }
      end
      subroutine v2(*,*)  ! { dg-error "Ambiguous interfaces" }
      end
   end interface
   interface w
      subroutine w1(*,i)  ! { dg-error "Ambiguous interfaces" }
      end
      subroutine w2(*,j)  ! { dg-error "Ambiguous interfaces" }
      end
   end interface
end