blob: 6a663e66b5f2ddf776e137b9e929fecb12826989 (
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 "-Wno-argument-mismatch" }
!
! No warnings should be output here with -Wno-argument-mismatch.
!
subroutine s1(x)
implicit none
integer, intent(in) :: x
print *, x
end subroutine
subroutine s2(x)
implicit none
integer, intent(in) :: x(1)
print *, x
end subroutine
subroutine s3(x)
implicit none
integer, intent(in) :: x(2)
print *, x
end subroutine
implicit none
integer :: x, y(1)
real :: r
call s1(r)
call s1(y)
call s2(x)
call s3(y)
end
|