hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / PR96728.f90
blob4caa3a569a70a33a60d33e8e5be10e8005bb74cd
1 ! { dg-do run }
3 ! Test the fix for PR96728
6 module cref_m
8 implicit none
10 private
12 public :: &
13 isub_a_m
15 contains
17 subroutine isub_a_m(a, b)
18 integer, intent(in) :: a(..)
19 integer, intent(out) :: b(size(a))
21 integer :: i
23 b = [(i, i=1,size(b))]
24 return
25 end subroutine isub_a_m
27 end module cref_m
29 program cref_p
31 use cref_m, only: &
32 isub_a_m
34 implicit none
36 integer :: i
38 integer, parameter :: n = 3
39 integer, parameter :: p(*) = [(i, i=1,n*n)]
41 integer :: a(n,n)
42 integer :: b(n*n)
44 a = reshape(p, shape=[n,n])
45 call isub_a_m(a, b)
46 if (any(b/=p)) stop 1
47 stop
49 end program cref_p