summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/size_dim.f90
blob: 9d3938ed0015005df1cfdf436800dfab1e3df689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do run }
! Check size with initialization expression value for dim=
! PR fortran/30882
!
! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
!
program main
  integer :: a(10)
  call S1(a)
contains
  subroutine S1(a)
    integer :: a(*)
    if(size(a(1:10),1) /= 10) call abort()
  end subroutine S1
end program main